PDF to multiple jpg's?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Locked
User avatar
magick
Site Admin
Posts: 11254
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

To convert a multipage PDF to multiple JPEG images, use this command:
  • convert -density 400x400 image.pdf -resize 25% image-%d.jpg

User avatar
anthony
Posts: 8884
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

You may also like to see IM Examples, Writing a Multi-Image Sequence
http://www.cit.gu.edu.au/~anthony/graph ... #write_seq
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/

sonusdream

Post by sonusdream »

i tried executing this

Code: Select all

convert multi.pdf output-%d.jpg
and it doesnt seem to be working. i only get 1 jpg output (the first page on the pdf file)

This are the other infos that you may need:

OS : Windows XP
ImageMagick : 6.2.9
Ghostscript: 8.54

hope you can help me with this


regards,
sonus

User avatar
magick
Site Admin
Posts: 11254
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Check your delgates.xml configuration file and make sure your ps:color device is pnmraw and not psdrgb. If that fails, grab ImageMagick 6.3.0-2, the latest release. It should work for you.

josimarmatiasdasilva
Posts: 4
Joined: 2020-03-17T12:59:49-07:00
Authentication code: 1152

Re: PDF to multiple jpg's?

Post by josimarmatiasdasilva »

And how can I set up a command to transform multiple PDFs into a single PDF file with multiple pages?

Antecipadamento, agradeço a atenção.

User avatar
fmw42
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PDF to multiple jpg's?

Post by fmw42 »

Code: Select all

convert image1.pdf image2.pdf ... imageN.pdf result.pdf
But note that the resulting PDF will be raster images imbedded in a vector shell. ImageMagick uses Ghostscript to read PDF files and it rasterizes the vector PDF input.

Locked