PageMode
IPDFDocument3 :: General document methods

See Also Example
Collapse All

This property gets or sets viewing modes when the document is opened.

Syntax

TxPageMode PageMode { get; set; }
Value
One of the TxPageMode values

Remarks

The PageMode property specifies how the document should be displayed when opened.

Equivalent in new interface: IPDFDocument4::ViewerMode.

Example

Starting a PDF Document with Thumbnails Enabled

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.StartEngine('demo', 'demo');
PDF.FileName := 'empty.pdf';
PDF.AutoLaunch := true;
PDF.PageMode := pmUseThumbs;
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->PageMode = pmUseThumbs;
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.PageMode = TxPageMode.pmUseThumbs;
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.PageMode = 2' pmUseThumbs
PDF.BeginDoc
PDF.EndDoc

See Also

Reference