PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() ![]() ![]() ![]() This property gets or sets the value indicating whether the PDF reader should hide toolbars.
|
VARIANT_BOOL ViewerPreferences_vpHideToolBar { get; set; } |
Value
VARIANT_TRUE if the PDF reader hides tool bars, VARIANT_FALSE otherwise.
Remarks
When set to VARIANT_TRUE, ViewerPreferences_vpHideToolBar hides the viewer application tool bars when the document is active.
Equivalent in new interface: IPDFDocument4::HideViewerToolBar.
Example
Setting Various Viewer Preferences
Delphi
[copy to clipboard]
{ 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. }
C/C++
[copy to clipboard]
// 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. */
C#
[copy to clipboard]
// 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. */
Visual Basic
[copy to clipboard]
' 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