Name
  doc:SetPageLayout -- set how pages should be displayed
Synopsis

      status = doc:SetPageLayout(layout)

Function
  `doc:SetPageLayout()` sets how the pages should be displayed. If this attribute is not set, the setting of the viewer application is used.

  `layout` can be one of the following constants:

  `#HPDF_PAGE_LAYOUT_SINGLE:`
    Only one page is displayed.

  `#HPDF_PAGE_LAYOUT_ONE_COLUMN:`
    Display the pages in one column.

  `#HPDF_PAGE_LAYOUT_TWO_COLUMN_LEFT:`
    Display in two columns. Odd page number is displayed left.

  `#HPDF_PAGE_LAYOUT_TWO_COLUMN_RIGHT:`
    Display in two columns. Odd page number is displayed right.

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

Inputs
  layout
    one of the page layout constants (see above)
Results
  status
    status code
Errors
  `#HPDF_INVALID_DOCUMENT` - An invalid document handle is set.

  `#HPDF_FAILED_TO_ALLOC_MEM` - Memory allocation failed.

  `#HPDF_PAGE_LAYOUT_OUT_OF_RANGE` - An invalid page layout is specified.

Show TOC