[gs-devel] rotating pages in a document to portrait

Russell Lang gsview at ghostgum.com.au
Wed May 21 02:49:58 PDT 2008


Lee,

GSview uses the following code:
gswin32c -c 
 "<< 
  /Policies   << /PageSize 5 >> 
  /PageSize [595 842] 
  /InputAttributes currentpagedevice 
  /InputAttributes get mark exch 
  {1 index /Priority eq not 
  {pop << /PageSize [595 842] >>} if }
  forall >> 
>> setpagedevice" -f yourfile.ps


Russell

On 19 Feb 2008 at 11:23, Lee Howard wrote:

> 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.
> _______________________________________________
> gs-devel mailing list
> gs-devel at ghostscript.com
> http://www.ghostscript.com/mailman/listinfo/gs-devel


Russell Lang                   gsview at ghostgum.com.au
Ghostgum Software Pty Ltd      http://www.ghostgum.com.au/



More information about the gs-devel mailing list