TPDFlibViewerZoomMode

Data types, viewer interaction

Description

Enum that selects how the viewer derives its effective zoom

Consumed by the ZoomMode property, SetZoomMode and the viewer's layout arithmetic; in fit modes the effective factor comes from the page and viewport sizes and is recomputed on resize, rotation and DPI change

The fit actions TPDFlibViewerFitWidth and TPDFlibViewerFitPage switch between these modes and mirror the active one in Checked

Declaration

TPDFlibViewerZoomMode = (zmPercent, zmFitWidth, zmFitPage);

Values

zmPercentUses ZoomPercent directly, with 100 percent mapping one PDF point to ScreenDPI/72 pixels
zmFitWidthComputes the largest zoom at which the full page width fits the viewport
zmFitPageComputes the largest zoom at which the whole page fits the viewport

See also

ZoomMode, SetZoomMode, ZoomPercent, EffectiveZoomPercent, TPDFlibViewerFitWidth, TPDFlibViewerFitPage