PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis property gets or sets the zoom level (in percent) to use when the document is opened.
|
| INT InitialZoom { get; set; } |
Value
Zoom level (as a percent)
Remarks
The InitialZoom property specifies how the document should be displayed when opened. You should use InitialZoom or InitialZoom2 after BeginDoc.
Equivalent in new interface: IPDFDocument4::InitialZoomPercent.
Example
Opening a PDF Document with Zoom Level Set to 121%
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.InitialZoom := 121;
PDF.PDFPAGE_TextOut(100, 100, 0, 'This document should open with zoom level set to 121%');
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->InitialZoom = 121;
PDF->PDFPAGE_TextOut(100, 100, 0, "This document should open with zoom level set to 121%");
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.InitialZoom = 121;
PDF.PDFPAGE_TextOut(100, 100, 0, "This document should open with zoom level set to 121%");
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.InitialZoom = 121 PDF.PDFPAGE_TextOut 100, 100, 0, "This document should open with zoom level set to 121%" PDF.EndDoc
See Also
Reference


