Quantcast
Channel: PDFCreator - pdfforge forums
Viewing all articles
Browse latest Browse all 2632

PDFCreator - Page Orientation Solved :-)

$
0
0

@theDuck01 wrote:

Hi,

I really need to create landscape slides (PDFs) from landscape printing from a vb.net application. Unfortunately, for the last 5 years, PDFCreator always decided to print the PDF's with a portrait orientation. I then turn them using a Web PDF Rotation service.

So I had a look under the bonnet of PDFCreator and realised it is little more than a wrapper around a product called Ghostscript. More reading suggested the Ghostscript's autorotatepages function was struggling and needed a hand. Lots of reading of the Postscript Manuals left me realising that I need PDFCreator to read this line of Postscript:

-c "<</Orientation 3>> setpagedevice"

I set the "Additional Ghostscript parameters" textbox in PDFCreator and tried again. Still no luck!

I searched for other approaches and found this:

<< 
 /EndPage 
 { exch pop 2 ne 
   { [{ThisPage} <</Rotate 90>> /PUT pdfmark true} 
 {false}ifelse 
 } 
>>setpagedevice

I could see no way to prefix this with a "-c" so I saved it in a file called rotate.ps, in the "C:\Program Files\PDFCreator\GS9.10\gs9.10\Lib" folder and put rotate.ps in the Additional Ghostscript parameters" textbox.

This time I had success. The output from my application reliably produces landscape output from a landscape original.

Whats more if <> setpagedevice is put into the rotate.ps file this works too!

So like buses, I now have two different, but functional solutions.

I would be grateful if a pdfforge engineer, a Ghostscript engineer or a postscript professional would comment.

Thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 2632

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>