PTViewerPref

enum PTViewerPref {}

PTViewerPref enumeration specifies how various GUI elements should behave when the document is opened.

  • e_ptHideToolbar A flag specifying whether to hide the viewer application’s toolbars when the document is active. Default value: false.

  • e_ptHideMenubar A flag specifying whether to hide the viewer application’s menu bar when the document is active. Default value: false.

  • e_ptHideWindowUI A flag specifying whether to hide user interface elements in the document’s window (such as scroll bars and navigation controls), leaving only the document’s contents displayed. Default value: false.

  • e_ptFitWindow A flag specifying whether to resize the document’s window to fit the size of the first displayed page. Default value: false.

  • e_ptCenterWindow A flag specifying whether to position the document’s window in the center of the screen. Default value: false.

  • e_ptDisplayDocTitle A flag specifying whether the window’s title bar should display the document title taken from the Title entry of the document information dictionary. If false, the title bar should instead display the name of the PDF file containing the document. Default value: false.