Convert PDF to PNG recursively.

Convert PDF to PNG recursively

Miguel Menéndez

How to convert a PDF document to PNG images recursively.

Well, I added to /etc/ImageMagick-7/policy.xml the line:

<policy domain="coder" rights="read | write" pattern="PDF" />

just before </policymap>, but not sure about the security implications of that.

And comment the line:

<!-- <policy domain="delegate" rights="none" pattern="gs" /> -->

Finally:

$ convert input.pdf output.png

Comments

Found a bug? Do you think something could be improved? Feel free to let me know and I will be happy to take a look.