BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

ContentOrientation Property

Sets the content orientation. Default value: PRN_CONTENT_ORIENT_HORIZONTAL.

Type

prnContentOrientation (write-only)

Remarks

PRN_CONTENT_ORIENT_HORIZONTAL means that the content is horizontal, as appears on the screen in a web browser.
PRN_CONTENT_ORIENT_VERTICAL means that the content is turned counter-clockwise by 90 degrees, so horizontal text becomes vertical. Some web sites only fit this way on a portait paper.
Note that the content orientation is completely independent from the page orientation. You can have vertical text on portrait and landscape papers as well. It does not affect the margins either.

Example Usage

'VB Sample Code

Set oPrinter = CreateObject("easyPDF.Printer.8")

Set oPrintJob = oPrinter.IEExtendedPrintJob

oPrintJob.PageWidth = 8.5
oPrintJob.PageHeight = 11.0
oPrintJob.ContentOrientation = PRN_CONTENT_ORIENT_VERTICAL

oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"


//C# Sample Code

PrinterClass printerObj = new PrinterClass();

IEExtendedPrintJob printJobObj = printerObj.IEExtendedPrintJob;

printJobObj.PageWidth = 8.5;
printJobObj.PageHeight = 11.0;
printJobObj.ContentOrientation = prnContentOrientation.PRN_CONTENT_ORIENT_HORIZONTAL;

printJobObj.PrintOut("http://www.pdfonline.com/", @"C:\test\output.pdf");