Name
  doc:SetViewerPreference -- set viewer preferences
Synopsis

      status = doc:SetViewerPreference(flags)

Function
  `doc:SetViewerPreference()` sets the viewer preferences for the document.

  `flags` can be a combination of the following options:

  `#HPDF_HIDE_TOOLBAR:`
    Hide viewer's toolbar.

  `#HPDF_HIDE_MENUBAR:`
    Hide viewer's menu bar.

  `#HPDF_HIDE_WINDOW_UI`
    Hide viewer's user interface.

  `#HPDF_FIT_WINDOW:`
    Fit document in viewer window.

  `#HPDF_CENTER_WINDOW:`
    Center document in viewer window.

  `#HPDF_PRINT_SCALING_NONE:`
    Disable scaling when printing.

Inputs
  flags
    one or more viewer flags (see above)
Results
  status
    status code
Errors
  `#HPDF_INVALID_DOCUMENT` - An invalid document handle was set.

Show TOC