PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllSets or retrieves zoom level to use when the document is opened.
|
| TxZoomLevel InitialZoom2 { get; set; } |
Value
Remarks
The InitialZoom2 property specifies how the document should be displayed when opened. You should use InitialZoom or InitialZoom2 after BeginDoc.
Example
Open 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


