Components for Developers
© 2000-2008, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Common
Collapse All

This property gets or sets the current page orientation.

Syntax

PaperOrientation PageOrientation { get; set; }
Value
One of the PaperOrientation values

Remarks

All changes to a page must occur before the first drawing on a page.

Example

Setting Page Orientation

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.PageSize := pfA4;
PDF.PageOrientation := pLandscape;
PDF.ShowText('Test');
PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->PageSize = pfA4;
PDF->PageOrientation = pLandscape;
PDF->ShowText("Test");
PDF->SaveToFile("test.pdf", true);
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.PageSize = PaperFormat.pfA4;
PDF.PageOrientation = PaperOrientation.pLandscape;
PDF.ShowText("Test");
PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.PageSize = 2 'PaperFormat.pfA4
PDF.PageOrientation = 1 'PaperOrientation.pLandscape
PDF.ShowText "Test"
PDF.SaveToFile "test.pdf", true

See Also

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2008, Two Pilots