[gs-devel] Convert PDF to PS - Automatic page rotation to Portrait

Ken Sharp ken.sharp at artifex.com
Sat Nov 7 05:25:57 PST 2009


At 13:21 07/11/2009 +0100, Lakos Dániel wrote:


>with '-sDevice=pswrite' the output page size is correct A4 (8.26 x 11.69 
>inches) -- characters and page size are OK.

Yes, sorry I meant A4, no letter previously.


>using '-sDevice=ps2write' the output 8.50 x 11.00 inches -- charachters ar 
>ok, but the document doesnt fit

8.5x11 is Letter size.


>It seems that the code i using (device=pswrite) is correctly convert the 
>pdf to ps (checked using adobe distiller).
>When Hylafax conerts this PS to Tiff, things go wrong.

Goes wrong how ? Can you run the produced PostScript file back through 
Ghostscript, and the output is correct ?

You can have Ghostscript create a TIFF file for you if that's all you want, 
and you can do it from the original PDF.


>How to get ps2write working with the correct papersize?
>I hope the output of ps2write is going to give better results when 
>converted to tiff.

Sounds like your system may be defaulting to letter media.
You could try -sPAPERSIZE=a4 -dFIXEDMEDIA also -sDEFAULTPAPERSIZE=a4


                 Ken


More information about the gs-devel mailing list