



Collapse AllThis property gets or sets the value indicating whether the PDF reader should fit the first page to screen size.
Syntax| VARIANT_BOOL ViewerPreferences_vpFitWindow { get; set; } |
RemarksWhen set to VARIANT_TRUE, ViewerPreferences_vpFitWindow resizes the document window to fit the size of the first displayed page.
Equivalent in new interface: IPDFDocument4::FitWindow.
Example{ PDF object is supposed to be created }
PDF.ViewerPreferences_vpHideToolBar := true;
PDF.ViewerPreferences_vpHideMenuBar := true;
PDF.ViewerPreferences_vpHideWindowUI := true;
PDF.ViewerPreferences_vpFitWindow := true;
PDF.ViewerPreferences_vpCenterWindow := true;
PDF.BeginDoc;
{ some document generating code here... }
PDF.EndDoc;
{ The resulting document will be shown without any }
{ user interface elements; fits the screen and is centered. }
// PDF object is supposed to be created PDF->ViewerPreferences_vpHideToolBar = TRUE; PDF->ViewerPreferences_vpHideMenuBar = TRUE; PDF->ViewerPreferences_vpHideWindowUI = TRUE; PDF->ViewerPreferences_vpFitWindow = TRUE; PDF->ViewerPreferences_vpCenterWindow = TRUE; PDF->BeginDoc(); // some document generating code here... PDF->EndDoc(); /* The resulting document will be shown without any user interface elements; fits the screen and is centered. */
// PDF object is supposed to be created PDF.ViewerPreferences_vpHideToolBar = true; PDF.ViewerPreferences_vpHideMenuBar = true; PDF.ViewerPreferences_vpHideWindowUI = true; PDF.ViewerPreferences_vpFitWindow = true; PDF.ViewerPreferences_vpCenterWindow = true; PDF.BeginDoc(); // some document generating code here... PDF.EndDoc(); /* The resulting document will be shown without any user interface elements; fits the screen and is centered. */
' PDF object is supposed to be created PDF.ViewerPreferences_vpHideToolBar = True PDF.ViewerPreferences_vpHideMenuBar = True PDF.ViewerPreferences_vpHideWindowUI = True PDF.ViewerPreferences_vpFitWindow = True PDF.ViewerPreferences_vpCenterWindow = True PDF.BeginDoc ' some document generating code here... PDF.EndDoc ' The resulting document will be shown without any ' user interface elements; fits the screen and is centered.
See Also