Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Syntax 5: For PDFTableOfContents and PDFTableOfContentsItem objects – PB Docs 2022 – PowerBuilder Library

Syntax 5: For PDFTableOfContents and PDFTableOfContentsItem objects – PB Docs 2022

Syntax 5: For PDFTableOfContents and PDFTableOfContentsItem
objects

Description

Adds a chapter to the table of contents.

Applies to

PDFTableOfContents objects

PDFTableOfContentsItem
objects

Syntax

Argument

Description

chapterObject

The text or textblock (heading) to add for a chapter in
the table of contents.

Return value

PDFTableOfContentsItem objects.
Returns the table of contents item created in the table of contents if
the function succeeds.

Usage

Use this syntax to add chapters to the table of contents. The
AddItem function of PDFTableOfContents adds the level-1 chapters; and
the AddItem function of PDFTableOfContents adds the sub-level
chapters.

The chapterObject is added to both the table of contents, and to a
PDFPage. Then, the chapterObject in the table of contents is linked to
the actual chapter in the PDFPage.

Examples

This example adds level-1 and level-2 chapters to the table of
contents and have them linking to the actual chapter in the
document:

See also

GetBottomMargin

GetChapterObject

GetChapterTitle

GetFont

GetItem

GetItemCount

GetLeftMargin

GetPosByPageIndex

GetRightMargin

GetStyle

GetTitle

GetTopMargin

RemoveAll

RemoveItem

SetBottomMargin

SetFont

SetLeftMargin

SetPosByPageIndex

SetRightMargin

SetStyle

SetTitle

SetTopMargin


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x