



Collapse All
Syntax| TxZoomLevel InitialZoom2 { get; set; } |
RemarksThe 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{ 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;
// 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();
// 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();
' 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