PDF Rotate

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
William

PDF Rotate

Post by William »

Hi,

I have some PDF which are badly converted in JPG, IM seems to ignore the '/Rotate' ps syntax
It's like if you tried to print a landscape picture on a portrait page

I analyse the PDF and here some useful data :

Code: Select all

%PDF-1.4
%âãÏÓ
1 0 obj
<</Pages 2 0 R
/Metadata 3 0 R
/Type /Catalog
>>
endobj
2 0 obj
<</Rotate 90
/Kids [4 0 R 5 0 R 6 0 R 7 0 R 8 0 R 9 0 R 10 0 R 11 0 R 12 0 R 13 0 R 14 0 R 15 0 R 16 0 R 17 0 R 18 0 R 19 0 R 20 0 R 21 0 R 22 0 R 23 0 R]
/Count 20
/Type /Pages
>>
endobj
4 0 obj
<</Rotate 90
/Parent 2 0 R
/Resources <</ExtGState 24 0 R
/ColorSpace 25 0 R
/Font 26 0 R
/XObject 27 0 R
/ProcSet [/PDF /ImageC /ImageI /Text]
>>
/MediaBox [0 0 612 792]
/pdftk_PageNum 1
/Contents 28 0 R
/Type /Page
>>
endobj
you could see the /Rotate 90 and /MediaBox [0 0 612 792]
identify so gives me 612x792 as width x height of the PDF

If I open this PDF under acroreader, I have a 792x612 PDF on screen

I can convert this PDF with gs and the result JPG is ok
But not with convert....until I modify delegates.xml
In fact, if I understand, ImageMagick gives the width&height of the PDF throught -r%s and so avoid GS to read it from file.... I simply desactivate this -r%s (with a -dDummy%s)

For information, the PDF was created using AFPL Ghostscript 8.54

Did I miss something ?
William

Re: PDF Rotate

Post by William »

hmm.... :oops:
after more in depth analyse, it seems I had a version conflit : 2 IM were on the same server...

Bug is no longer here on my latest version

sorry about that
Post Reply