From fc6e332473ecd1488cd40827d2b06212dce711c7 Mon Sep 17 00:00:00 2001 From: Asocia Date: Mon, 7 Jun 2021 20:23:47 +0300 Subject: [PATCH] TIL: Joining images to pdf --- command_line_utils/joining-images-to-pdf.md | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 command_line_utils/joining-images-to-pdf.md diff --git a/command_line_utils/joining-images-to-pdf.md b/command_line_utils/joining-images-to-pdf.md new file mode 100644 index 0000000..53f133b --- /dev/null +++ b/command_line_utils/joining-images-to-pdf.md @@ -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 + + + +with + + + + +[source](https://askubuntu.com/questions/1081895/trouble-with-batch-conversion-of-png-to-pdf-using-convert)