InitialZoom2
IPDFDocument3 :: General document methods

See Also Example
Collapse All

This property gets or sets the zoom level to use when the document is opened.

Syntax

TxZoomLevel InitialZoom2 { get; set; }
Value
One of the TxZoomLevel values

Remarks

The InitialZoom2 property specifies how the document should be displayed when opened. You should use InitialZoom or InitialZoom2 after BeginDoc.

Equivalent in new interface: IPDFDocument4::InitialZoom.

Example

Opening a PDF Document with Zoom Level Set to "Fit Visible"

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.StartEngine('demo', 'demo');
PDF.FileName := 'empty.pdf';
PDF.AutoLaunch := true;
PDF.BeginDoc;

PDF.InitialZoom2 := zlFitVisible;
PDF.PDFPAGE_TextOut(100, 100, 0, 'This document should open with zoom = Fit Visible');
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->BeginDoc();

PDF->InitialZoom2 = zlFitVisivle;
PDF->PDFPAGE_TextOut(100, 100, 0, "This document should open with zoom = Fit Visible");
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.BeginDoc();

PDF.InitialZoom2 = TxZoomLevel.zlFitVisivle;
PDF.PDFPAGE_TextOut(100, 100, 0, "This document should open with zoom = Fit Visible");
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.StartEngine "demo", "demo"
PDF.FileName = "empty.pdf"
PDF.AutoLaunch = True
PDF.BeginDoc

PDF.InitialZoom2 = zlFitVisivle
PDF.PDFPAGE_TextOut 100, 100, 0, "This document should open with zoom = Fit Visible"
PDF.EndDoc

See Also

Reference