Jun's Blog

Output, activities, memo and etc.

How to convert PDF file to PNG file with high quality on Fedora

Here is the way to convert PDF file to PNG files (1 PNG for 1 page of the PDF) with convert command, according to [1].

Maybe output image file type are recognized automatically from the file extension name ".png".

$ convert \
   -verbose \
   -density 150 \
   -trim \
   input.pdf \
   -quality 100 \
   -sharpen 0x1.0 \
   output.png

Then output-0.png, output-1.png, output-2.png, and etc are created.

References