Convert pdf to png with ImageMagick
February 27, 2021 —
~redtrumpet
ImageMagick allows an easy conversion between image files with the convert command.
This also works with pdf-files, but by default the quality of a converted pdf-file will not allow one to read text.
So fix this, use the -density option, adjusted to ones liking. I had good results with the following
convert -density 300 <file.pdf> <output.png>
Of course, one can also output to jpg or other file formats.
tags: pdf, convert, imagemagick, computers