[gs-devel] rotating pages in a document to portrait
Lee Howard
faxguy at howardsilvan.com
Tue Feb 19 12:23:57 PST 2008
I occasionally encounter documents (both Postscript and PDF, but usually
they're PDF that have this "feature") where some pages are oriented
portrait and some are oriented landscape.
For faxing all pages need to be oriented portrait. How can I cause the
output to be consistently done in portrait when the input document has a
mix of portrait and landscape pages?
Typically this is the conversion process to produce the fax images:
gs -q -sDEVICE=tiffg4 -dNOPAUSE -dSAFER=true -sPAPERSIZE=letter
-dFIXEDMEDIA -dBATCH -r203.29x98 -sOutputFile=out.tif in.pdf
However, the -dFIXEDMEDIA causes the landscape-oriented images to be
chopped off on their right. So we can do this:
gs -q -sDEVICE=tiffg4 -dNOPAUSE -dSAFER=true -sPAPERSIZE=letter
-dPDFFitPage -dBATCH -r203.29x98 -sOutputFile=out.tif in.pdf
And this prevents the chopping from occurring, but the page is still not
well-fitted to the page in that there's now a lot of white space at the top.
-dAutoRotatePages=/PageByPage doesn't seem to do anything in this case.
Any suggestions would be appreciated.
Thanks,
Lee.
More information about the gs-devel
mailing list