Tuesday, March 15, 2022

[SOLVED] How to convert a PDF into JPG with command line in Linux?

Issue

What are fast and reliable ways for converting a PDF into a (single) JPEG using the command line on Linux?


id='dv4'>

Solution

You can try ImageMagick's convert utility.

On Ubuntu, you can install it with this command:

$ sudo apt-get install imagemagick

Use convert like this:

$ convert input.pdf output.jpg
# For good quality use these parameters
$ convert -density 300 -quality 100 in.pdf out.jpg


Answered By - janfitz
Answer Checked By - Senaida (WPSolving Volunteer)