Debenu Quick PDF logo

NewOutline

Outlines

Description

Adds a new outline item to the document. Outline items can be added in a hierarchical structure. In Acrobat Reader, outlines are referred to as bookmarks.

Syntax

Delphi

function TDebenuPDFLibrary1511.NewOutline(Parent: Integer; Title: WideString; 
  DestPage: Integer; DestPosition: Double): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::NewOutline(Parent As Long,
  Title As String, DestPage As Long, DestPosition As Double) As Long

DLL

int DPLNewOutline(int InstanceID, int Parent, wchar_t * Title, int DestPage,
  double DestPosition)

Parameters

Parent 0 for a root item, or the ID of the parent item if this is a child item (returned by the NewOutline function). Alternatively, use the GetOutlineID function to get a valid outline ID.
Title The title of the outline item.
DestPage The destination page number that this outline item links to
DestPosition The vertical position on the destination page to link to

Return values

0 The item could not be added
Non-zero The ID of the item which was added successfully

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport