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

SiblingIDExisting sibling outline that the new outline should precede
TitleOutline title shown by the viewer
DestPage1-based destination page number
DestPositionDestination position in the current measurement system

Return values

0The sibling outline was invalid or the outline could not be inserted
Non-zeroThe new outline ID