Debenu Quick PDF logo

SetOutlineJavaScript

JavaScript, Outlines

Description

Specifies the JavaScript to run when the user clicks on the outline item (bookmark).

Syntax

Delphi

function TDebenuPDFLibrary1511.SetOutlineJavaScript(OutlineID: Integer; 
  JavaScript: WideString): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::SetOutlineJavaScript(OutlineID As Long,
  JavaScript As String) As Long

DLL

int DPLSetOutlineJavaScript(int InstanceID, int OutlineID, wchar_t * JavaScript)

Parameters

OutlineID The ID of the outline as returned by the NewOutline function. Alternatively, use the GetOutlineID function to get a valid outline ID.
JavaScript The JavaScript to execute.

Return values

0 The OutlineID was invalid
1 The JavaScript action was successfully added to the outline ID

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport