PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllGets or sets value indicating how the document is viewed when opened.
|
| TxPageLayout PageLayout { get; set; } |
Value
Remarks
The PageLayout property switches the document view type at startup. The PDF document starts in presentation mode.
Analogue in new interface: IPDFDocument4::ViewerPageLayout.
Example
Start a PDF document in presentation mode
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.StartEngine('demo', 'demo');
PDF.FileName := 'empty.pdf';
PDF.AutoLaunch := true;
PDF.PageLayout := plSinglePage;
PDF.BeginDoc;
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->StartEngine('demo', 'demo');
PDF->FileName = 'empty.pdf';
PDF->AutoLaunch = TRUE;
PDF->PageLayout = plSinglePage;
PDF->BeginDoc();
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.StartEngine('demo', 'demo');
PDF.FileName = 'empty.pdf';
PDF.AutoLaunch = true;
PDF.PageLayout = TxPageLayout.plSinglePage;
PDF.BeginDoc();
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.StartEngine "demo@demo", "demo" PDF.AutoLaunch = true PDF.FileName = "empty.pdf" PDF.PageLayout = plSinglePage PDF.BeginDoc PDF.EndDoc
See Also
Reference


