NewOutlineBefore
Outlines
Description
Creates a new outline with the same parent as an existing sibling and places it immediately before that sibling
Syntax
Delphi
Function TPDFlib.NewOutlineBefore(SiblingID: Integer; Const Title: WideString; DestPage: Integer; DestPosition: Double): Integer;
Parameters
| SiblingID | Existing sibling outline that the new outline should precede |
|---|---|
| Title | Outline title shown by the viewer |
| DestPage | 1-based destination page number |
| DestPosition | Destination position in the current measurement system |
Return values
| 0 | The sibling outline was invalid or the outline could not be inserted |
|---|---|
| Non-zero | The new outline ID |