displayMode
Get/set page display mode.
[read/write property]
displayMode([out, retval] int *mode)
displayMode([in] int mode)
XpdfViewer has five page view modes:
displaySingle
- display a single page at a time; the vertical scrollbar spans only one pagedisplayContinuous
- display pages stacked vertically; the vertical scrollbar spans the entire documentdisplaySideBySideSingle
- display two facing pages at a time; the vertical scrollbar spans the taller of the two pagesdisplaySideBySideContinuous
- display facing pages, stacked vertically; the vertical scrollbar spans the entire documentdisplayHorizontalContinuous
- display pages stacked horizontally; the horizontal scrollbar spans the entire document
All of the mode values are read-only properties, so they must be
accessed as viewer.displaySingle
, etc.
Set the displayMode
property to change the page display
mode. Read the property to get the current mode.
VB:
viewer.displayMode = viewer.displayContinuous