PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis property sets or gets the current page orientation.
|
| TxPDFPageOrientation PDFPAGE_Orientation { get; set; } |
Value
Remarks
This property sets or gets the orientation of the current page in a PDF document. Remember that all changes for page must occur before the first drawing on a page.
Equivalent in new interface: IPDFDocument4::PageOrientation.
Example
Portrait and Landscape Page Orientation
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_Orientation := poLandscape;
PDF.PDFPAGE_SetActiveFont('Helvetica', False, False, False, False, 16.0, 0);
PDF.PDFPAGE_TextOut(20, 20, 0.0, 'Portrait');
PDF.NewPage;
PDF.PDFPAGE_Orientation := poPortrait;
PDF.PDFPAGE_SetActiveFont('Helvetica', False, False, False, False, 16.0, 0);
PDF.PDFPAGE_TextOut(20, 20, 0.0, 'Landscape');
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();
PDF->PDFPAGE_Orientation = poLandscape;
PDF->PDFPAGE_SetActiveFont("Helvetica", False, False, False, False, 16.0, 0);
PDF->PDFPAGE_TextOut(20, 20, 0.0, "Portrait");
PDF->NewPage();
PDF->PDFPAGE_Orientation = poPortrait;
PDF->PDFPAGE_SetActiveFont("Helvetica", False, False, False, False, 16.0, 0);
PDF->PDFPAGE_TextOut(20, 20, 0.0, "Landscape");
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
PDF.PDFPAGE_Orientation = TxPDFPageOrientation.poLandscape;
PDF.PDFPAGE_SetActiveFont("Helvetica", False, False, False, False, 16.0, 0);
PDF.PDFPAGE_TextOut(20, 20, 0.0, "Portrait");
PDF.NewPage();
PDF.PDFPAGE_Orientation = TxPDFPageOrientation.poPortrait;
PDF.PDFPAGE_SetActiveFont("Helvetica", False, False, False, False, 16.0, 0);
PDF.PDFPAGE_TextOut(20, 20, 0.0, "Landscape");
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.BeginDoc PDF.PDFPAGE_Orientation = 0' poLandscape = 0 PDF.PDFPAGE_SetActiveFont "Helvetica", False, False, False, False, 16.0, 0 PDF.PDFPAGE_TextOut 20, 20, 0.0, "Portrait" PDF.NewPage PDF.PDFPAGE_Orientation = 1' poPortrait = 1 PDF.PDFPAGE_SetActiveFont "Helvetica", False, False, False, False, 16.0, 0 PDF.PDFPAGE_TextOut 20, 20, 0.0, "Landscape" PDF.EndDoc
See Also
Reference


