Description
Sets the page index of the table of contents in the PDF document.
Applies to
Syntax
SetPosByPageIndex(long pageIndex)
Argument |
Description |
---|---|
pageIndex |
The page index of the table of contents in the PDF document.The value is 1 by default. |
Return value
None.
Usage
Call the function to set the page index of the table of contents in the PDF document. If not set, the value is 1, meaning that the table of contents will be inserted at the beginning of the PDF document.
Examples
The following example sets the page index of the table of contents to be 2 in the PDF document:
//Set the page index of the PDFTableOfContents lpdf_toc.setposbypageindex(2)
See also