TPDFlibViewerFitWidth

Data types, viewer interaction, actions

Description

Action that fits the page width inside the viewport. The constructor presets

Caption to Fit Width and Hint to Fit page width; executing calls SetZoomMode(zmFitWidth) on the assigned viewer

Checked reflects whether the viewer's ZoomMode currently is zmFitWidth

Declaration

TPDFlibViewerFitWidth = class(TPDFlibViewerAction) protected function DoUpdate: Boolean; override; procedure DoExecute; override; public constructor Create(AOwner: TComponent); override; end;

See also

TPDFlibViewerAction, SetZoomMode, ZoomMode, TPDFlibViewerZoomMode, TPDFlibViewerFitPage, TPDFlibViewer