Name
  doc:SetPageMode -- set how document should be displayed
Synopsis

      status = doc:SetPageMode(mode)

Function
  `doc:SetPageMode()` sets how the document should be displayed.

  `mode` can be one of the following constants:

  `#HPDF_PAGE_MODE_USE_NONE:`
    Display the document with neither outline nor thumbnail.

  `#HPDF_PAGE_MODE_USE_OUTLINE:`
    Display the document with outline pane.

  `#HPDF_PAGE_MODE_USE_THUMBS:`
    Display the document with thumbnail pane.

  `#HPDF_PAGE_MODE_FULL_SCREEN:`
    Display the document with full screen mode.

  When `doc:SetPageMode()` succeeds, it returns `#HPDF_OK`. Otherwise, it returns an error code and the error handler is called.

Inputs
  mode
    a valid page mode (see above for possible options)
Results
  status
    status code
Errors
  `#HPDF_INVALID_DOCUMENT` - An invalid document handle is set.

  `#HPDF_FAILED_TO_ALLOC_MEM` - Memory allocation failed.

  `#HPDF_PAGE_MODE_OUT_OF_RANGE` - An invalid page mode is specified.

Show TOC