PrevPage

Viewer interaction

Description

Moves to the page before the current one and returns the page shown

The target is clamped into range, so calling it on the first page keeps that page; navigation fires OnPageChange when the page moves

Syntax

Delphi

Function TPDFlibViewer.PrevPage: Integer;

Return values

0No document is open
1..PageCountThe 1-based page now shown after clamping

See also

Page, OnPageChange, PageCount, TPDFlibViewer