-
1. Re: How do I set page orientation with postscript when the resulting pdf is viewed in Adobe Acrobat?
Mr. Horton Jun 27, 2011 10:56 AM (in response to RichardB1234)Check to see that "gs" (ghostscript) isn't reorienting the page, by default, based on what it thinks the correct reading direction is.
-
2. Re: How do I set page orientation with postscript when the resulting pdf is viewed in Adobe Acrobat?
RichardB1234 Jun 27, 2011 12:06 PM (in response to Mr. Horton)My best guess is what you suggest... that gs is able to deduce the correct orientation when the text is at only one angle. When there is text at multiple angles, it cannot identify the orientation and uses the default: portrait.
However, I don't know how I can verify this hypothesis. There is nothing in our implementation of Ghostscript that explicitly does anything with page orientation. We are using Ghostscript gsdll32.dll Interpreter API with a .NET wrapper.
Any ideas on how to resolve the issue? I tried adding "<< /PageSize [792 612] >> setpagedevice" to the postscript to try to force landscape, but it didn't do anything.
-
3. Re: How do I set page orientation with postscript when the resulting pdf is viewed in Adobe Acrobat?
RichardB1234 Jun 27, 2011 1:23 PM (in response to Mr. Horton)I found a solution. I added ""<</Orientation 3>> setpagedevice" to the postscript and "-dAutoRotatePages=/None" to the gs call. The PDF file is now oriented correctly in Acrobat.
Thank you Mr. Horton for pointing me in the right direction.
-
4. Re: How do I set page orientation with postscript when the resulting pdf is viewed in Adobe Acrobat?
adobeAnitha Aug 4, 2011 11:11 AM (in response to RichardB1234)Hi,
I am looking for the same solution to change the file in Landscape when I push Print button. Can you please help me which .ps file i need to mention your code?
Thank you
Anitha

