Page 1 of 1

convert multiple page PDF to single image

Posted: 2008-11-20T11:00:20-07:00
by pentium10
I use this command:

Code: Select all

/usr/local/bin/convert -density 150 -quality 100 -resize 800x "tsfilename.pdf" "tsfilename.pdf.jpg"
My problem with multiple page PDF is, that multiple images are created.
I would like to have one single very long image to be created.

I use this feature as a print preview. So it's essential to be one image.
Is there a command to convert multiple paged PDF to one long image?
If not, how can I create one long image from the N ones, that are created after conversion?

Or if you have better idea, let me know.

Re: convert multiple page PDF to single image

Posted: 2008-11-20T11:24:34-07:00
by fmw42
pentium10 wrote:I use this command:

Code: Select all

/usr/local/bin/convert -density 150 -quality 100 -resize 800x "tsfilename.pdf" "tsfilename.pdf.jpg"
My problem with multiple page PDF is, that multiple images are created.
I would like to have one single very long image to be created.

I use this feature as a print preview. So it's essential to be one image.
Is there a command to convert multiple paged PDF to one long image?
If not, how can I create one long image from the N ones, that are created after conversion?

Or if you have better idea, let me know.
Create all your separate jpg images from the pdf first, then you can take all the jpgs and use -append to stack them into one tall image. That will be two steps unless you write a script to extract each page separately and then stack it onto the previous stack.

Re: convert multiple page PDF to single image

Posted: 2008-11-20T11:37:38-07:00
by pentium10
How do I know how many images were created?
Is there a return value from imagemagick?

Re: convert multiple page PDF to single image

Posted: 2008-11-20T16:13:39-07:00
by fmw42
pentium10 wrote:How do I know how many images were created?
Is there a return value from imagemagick?
Each jpg will end in an number image-0.jpg image-1.jpg etc