GetScrollPosForPage

Viewer interaction

Description

Returns the vertical scroll offset at which a page band starts when the document is displayed in continuous mode, including the page margin

In single-page mode every page occupies the whole viewport and the result is 0

Syntax

Delphi

Function TPDFlibViewer.GetScrollPosForPage(APage: Integer): Integer;

Parameters

APageOne-based page index

Return values

IntegerVertical scroll position in pixels where the page band starts, 0 in single-page mode

See also

TPDFlibViewer, DisplayMode, GoToPage, GoToPagePoint