[KLUG Members] Re:Landscape with xpdf

Adam Tauno Williams members@kalamazoolinux.org
Thu, 01 Nov 2001 13:58:04 -0500 (EST)


Awhile ago I asked if anyone knew of a way to make ps2pdf produce landscape
oriented pages (such that they would display correctly in xpdf/acrobat without
having to do a rotation).  I got a suggestion or two but nothing really worked. 
But by vi-ing around inside the postscript and pdf documents I manually achieved
what I wanted,  and have now reverse engineered the fix to ps2pdf

ps2pdf -r72 -g792x612 {input file} {output file}

I suppose this should have been obvious,  but I can be pretty thick at times. 
Apparently ps2pdf takes any parameters that gs takes (Duh, ps2pdf simply calls
gs and gs is what you see running in top).  But just specifying -g792x612
produced a postage stamp size document, and led me off on the wrong path for
awhile as one must also specify the dpi (-r) before the -g option really means
anything.

mpage proved less flexible in turning text files into truly landscape postscript
files (it produces landscape as text rotated 90 degrees onto a portrait page, 
then resulting in a portrait PDF file,  again... Duh!).  I had to edit the mpage
source code to define a paper size Letter90 (792x612 vs. 612x792).  

But it all works now!

Systems and Network Administrator
Morrison Industries
1825 Monroe Ave NW
Grand Rapids, MI. 49505