status = doc:SetPageMode(mode)
doc:SetPageMode()
sets how the document should be displayed.
mode
can be one of the following constants:
#HPDF_PAGE_MODE_USE_NONE:
#HPDF_PAGE_MODE_USE_OUTLINE:
#HPDF_PAGE_MODE_USE_THUMBS:
#HPDF_PAGE_MODE_FULL_SCREEN:
When doc:SetPageMode()
succeeds, it returns #HPDF_OK
. Otherwise, it returns an error code and the error handler is called.
#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.