I have been trying to print a one-page pdf file from command line (hostscript version 9.22), or .NET console app using ghostscript.net (version 1.2.1). The file (PDF version 1.7 - Acrobat 8.x) is A3 size and I want to print it on an A4. It looks like this:
The switches I am using
-empty -dPrinted -dBATCH -dNOPAUSE -dNOSAFER -dNumCopies=1 -sDEVICE=mswinpr2 -sOutputFile=%printer%MSPrintToPDF -f d:\test.pdf
(different pdf (primopdf, dopdf8, microsoft pdf printer) and real printers)
Switches, different combinations of which, I have tried:
-sPaperSize=a4 -g2490x1000 -dFIXEDMEDIA -dFIXEDRESOLUTION -r300 -dAutoRotatePages -dfitpage -dPDFFitPage -dEPSFitPage -dDEVICEWIDTHPOINTS=3500 -dDEVICEHEIGHTPOINTS=2000 -dORIENT1=false -dORIENT1=true
Without this:
-dDEVICEWIDTHPOINTS=3500 -dDEVICEHEIGHTPOINTS=2000
the result is cropped and not rotated correctly:
Otherwise the result is landscape, though still cropped:
How can print A3 size PDF on an A4 fitting the page?
Thank you