PDF to Image

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?".
Post Reply
pertinentobserver
Posts: 3
Joined: 2012-05-09T09:40:11-07:00
Authentication code: 13

PDF to Image

Post by pertinentobserver »

Hi,

I use the following command to convert PDF to Image. ( Each page within the PDF is converted to separate Image )
"C:\Program Files\ImageMagick-6.7.6-Q16\convert.exe" -density 300x300 -alpha off -colorspace sRGB -resize 284x368! "%%G" -units PixelsPerInch "%%~nG_Thumbnail_%%d.jpg"

This converts in the following:
PDF 1st page -> Thumbnail_0.jpg
PDF 2nd page -> Thumbanil_1.jpg

Is there a way I can modify the command to have the image numbering from 1?
Eg: PDF 1st page -> Thumbnail_1.jpg
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PDF to Image

Post by fmw42 »

pertinentobserver
Posts: 3
Joined: 2012-05-09T09:40:11-07:00
Authentication code: 13

Re: PDF to Image

Post by pertinentobserver »

awesome!!! thanks a lot. You Sir, are a genius :)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PDF to Image

Post by fmw42 »

pertinentobserver wrote:awesome!!! thanks a lot. You Sir, are a genius :)
Not really, just have spent more time with IM.
Post Reply