GetHeadingPage

Page layout

Description

Returns the page a registered heading points at, as the document stands now.

Syntax

Delphi

Function TPDFlib.GetHeadingPage(Index: Integer): Integer;

Return values

PageThe current page number.
0The index is out of range, or the heading belongs to another document.

Remarks

This follows page insertion: a heading registered on page 1 reports page 2 once a contents page is inserted in front of it.

See also

RegisterHeading, DrawTOC