0

Possible Duplicate:
How to extract image from PDF file

I have a PDF with images.

I would like to save the images alone as JPG with the resolution as 300.

Please provide me the commands to execute this in Windows.

marked as duplicate by sblair, Sathyajith Bhat Jun 1 '11 at 14:24

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

migrated from stackoverflow.com Jun 1 '11 at 11:30

This question came from our site for professional and enthusiast programmers.

  • I am really curious about those commands and where can one execute them – Bastardo Jun 1 '11 at 10:40
1

ImageMagick may be the tool you're looking for (there are Windows binaries available here):

 convert -resample 300x300 infile.pdf outfile%d.jpg
1

Doing a quick google using "command line pdf utility" gives you a few options, some being:

  • interesting stuff – Bastardo Jun 1 '11 at 10:41
1

a question like this one is asked on Super User before, and this is the question How to extract image from PDF file.Below is an answer with commands:

If you download XPDF for Windows (here), you'll find a few .exe files inside. You can run them without "installation". Use pdfimages.exe like this:

pdfimages.exe -help

This displays the help screen.

pdfimages.exe ^

-j ^
c:\path\to\your.pdf ^
c:\path\to\where\you\want\images\prefix

This extracts all JPEGs as prefix-00N.jpg, and all the other images as prefix-00N.ppm (Portable PixMap).

pdfimages.exe ^

-j ^
-f 11 ^
-l 13 ^
c:\path\to\your.pdf ^
c:\path\to\where\you\want\images\prefix

Same as before, but limits image extraction to pages 11 ('f' = first) to 13 ('l' = last).