INT InitialZoom { get; set; } |
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.
{ 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;
// 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();
// 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();
' 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