PageLayout
IPDFDocument3 :: General document methods

See Also Example
Collapse All

This property get or sets the value indicating how the document is viewed when opened.

Syntax

TxPageLayout PageLayout { get; set; }
Value
One of the TxPageLayout values

Remarks

The PageLayout property switches the document view type at startup. The PDF document starts in presentation mode.

Equivalent in new interface: IPDFDocument4::ViewerPageLayout.

Example

Starting 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