PageOrientation
IPDFDocument4 :: Page Operations :: Common

See Also Example
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

Reference