Resizing a PDF with landscape pages creates errors
Posted: 2009-11-29T05:36:35-07:00
Hi all,
I'm not sure if I'm going about this in the right way, I'll explain my needs:
1. I need all the output images in a common format (standard A4 size)
2. Any sized PDF should be created using the above format.
3. I don't know, when using ImageMagick, whether the PDF will contain landscaped or other strange format pages.
The code I am using is:
Now, when I convert portrait PDF's into this format it works great. However, one can also use landscape PDF's, or other strange shapes: Here's what it looks like:
- http://i50.tinypic.com/35n80me.jpg
Am I doing something wrong, or is there another way I should be doing this?
Thanks all, I'm kind of stuck with this one!
Edit: Oops, here is an example of the PDF I'm using to test: http://jump.fm/OBURI
I'm not sure if I'm going about this in the right way, I'll explain my needs:
1. I need all the output images in a common format (standard A4 size)
2. Any sized PDF should be created using the above format.
3. I don't know, when using ImageMagick, whether the PDF will contain landscaped or other strange format pages.
The code I am using is:
Code: Select all
exec("convert input.pdf -resize 475x670! -strip -quality 90 output.jpg");
- http://i50.tinypic.com/35n80me.jpg
Am I doing something wrong, or is there another way I should be doing this?
Thanks all, I'm kind of stuck with this one!
Edit: Oops, here is an example of the PDF I'm using to test: http://jump.fm/OBURI