I am trying to print a pdf in landscape orientation (90 degrees rotated) from the command line with this command:

lp -o landscape test.pdf

Besides the fact that it is minimized from A4 to A5 (which is correct) it is still printed in portrait modein the lower left corner of the paper.

This command has the same effect:

lp -o orienation-requested=4 test.pdf

When I try it from the preview app, it works, but I have to switch off "rotate automatically". Unfortunately there is no command line equivalent for the lp command (I know). Can anyone help?

P.S. When i try this with a text file everything works fine...

有帮助吗?

解决方案

heinob--

I believe this is the proper syntax to enter in the command line for what you're trying to do:

lp -o landscape -o fit-to-page -o media=A4 test.pdf

Then again, it could just be a weird issue with your printer.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top