This ghostscript option rotate A4 landscape pages before printing them on A4 portrait. -c "<< /Policies << /PageSize 3 >> /PageSize [595 842] /InputAttributes currentpagedevice /InputAttributes get mark exch {1 index /Priority eq not {pop << /PageSize [595 842] >>} if } forall >> >> setpagedevice" The A3 landscape pages are shrinking on A4 portrait but the A3 landscape pages are not rotate before printing. Have you an idea to track a solution for this problem? Thanks for your Help, Francois.
example ps files please. This line in the report looks wrong: "The A3 landscape pages are shrinking on A4 portrait but the A3 landscape pages are not rotate before printing." (ghostscript does not normally shrink input files - also, "/PageSize [595 842]" is A4, so if you run your "rotation code" as you wrote it, A3 page probably will be *clip* to A4? unless your print job has special postscript code to detects page size and resize. another reason for a example ps file)
When I use this command line to convert the file “test.pdf” in Postscript: gswin32c -sOutputFile="test.ps" -I="C:\Program Files\gs\fonts" - sDEVICE=pswrite -c "<< /Policies << /PageSize 3 >> /PageSize [595 842] /InputAttributes currentpagedevice /InputAttributes get mark exch {1 index /Priority eq not {pop << /PageSize [595 842] >>} if } forall >> >> setpagedevice" -dNOPAUSE -dBATCH test.pdf The first Pages are being rotated, but the second page are not being rotated.
Created attachment 2613 [details] Test File (test.pdf)
Created attachment 2614 [details] Ghostscript Result
Do you need any additional information? I agree that it is not rely a bug, but it is a real problem for us... I have searching for a solution on many forums and it seems that I am not alone with this problem. If you find a solution to this problem, it seems very interesting to include it to the Ghostscript documentation. Thanks for your help!!! Francois
There may be a workaround, if the real need is to suppress the overscaling of page 2 (as opposed to actually wanting portrait pages with the text written vertically): "-sPAPERSIZE=a4 -dPDFFitPage". The difference is that both pages appear in landscape (as they are in the PDF). "-dPDFFitPage" has its own problems. I fixed the ones I found when I created the suggested implementation for UserUnit, attachment #2419 [details] (from bug #688124 comment #12, details in bug #688124 comment #8).
The real need is to have an option that rotates the landscape pages. This option would be used in combination of the "-dPDFFitPage" option. Thanks for your suggestion...
This option would be very interesting to print PDF files that contain several page formats and orientations with a printer that only can print A4 pages.
Enhancement still missing in Ghostscript 9.03
Change to ASSIGNED. I will retest this since PDFFitPage seems to auto-rotate to 'best fit' for me.
This was caused by an /Orientation 0 in pdf_main.ps, but that is not a problem if an alternate (and considerably simpler) command line option is used for page fitting. This new feature works with PS as well as PDF input files: gs -dFitPage -sPAPERSIZE=a4 -dFIXEDMEDIA Bug688994.pdf