Mac OS X - how to print landscape pdfs from command line interface using lpr
Posted on 2009-04-04
My question is similar to ID:22526539 - I develop using RealBasic and am trying to print pdfs without launching Preview. I create pdfs(in landscape) in my program then want to print a batch of them. I can use the command line through RealBasic, so I have tried 'lpr -o landscape filename.pdf' and I do not get landscape - the page is portrait and the printing begins about 1/3 of the way down the page.
I can get landscape orientation if I use 'lpr -o orientation-requested=4', but then the left margin doesn't exist. I tried 'lpr -o orientation-requested=4 -o page-left=36' and the margin still does not exist.
Not sure what I'm doing wrong... please help!