PopulateOutlineFromHeadings
Page layout
Description
Turns the registered headings into document bookmarks.
Syntax
Delphi
Function TPDFlib.PopulateOutlineFromHeadings: Integer;Return values
| Count | How many outline entries were added. |
|---|---|
| 0 | No headings are registered, or none of them belong to this document. |
Remarks
Entries nest by level: each one hangs off the nearest shallower heading registered before it, which turns the flat sequence back into a tree. Headings whose target belongs to another document are skipped rather than added with no destination.