mirror of
https://github.com/sahinakkaya/til.git
synced 2024-12-22 15:19:38 +01:00
TIL: Joining images to pdf
This commit is contained in:
parent
68ae1bc314
commit
fc6e332473
22
command_line_utils/joining-images-to-pdf.md
Normal file
22
command_line_utils/joining-images-to-pdf.md
Normal file
@ -0,0 +1,22 @@
|
||||
You can join multiple images to pdf using `convert`:
|
||||
|
||||
convert *.png out.pdf
|
||||
|
||||
If you get an error like
|
||||
|
||||
convert-im6.q16: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408.
|
||||
|
||||
follow the steps below:
|
||||
|
||||
sudo vim /etc/ImageMagick-6/policy.xml
|
||||
|
||||
and replace the line
|
||||
|
||||
<policy domain="coder" rights="none" pattern="PDF" />
|
||||
|
||||
with
|
||||
|
||||
<policy domain="coder" rights="read|write" pattern="PDF" />
|
||||
|
||||
|
||||
[source](https://askubuntu.com/questions/1081895/trouble-with-batch-conversion-of-png-to-pdf-using-convert)
|
Loading…
Reference in New Issue
Block a user