Debenu Quick PDF logo

PageJavaScriptAction

JavaScript, Page properties

Description

This function is used to add JavaScript to a page open or page close event.

Syntax

Delphi

function TDebenuPDFLibrary1511.PageJavaScriptAction(ActionType, 
  JavaScript: WideString): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::PageJavaScriptAction(ActionType As String,
  JavaScript As String) As Long

DLL

int DPLPageJavaScriptAction(int InstanceID, wchar_t * ActionType,
  wchar_t * JavaScript)

Parameters

ActionType The event to add the JavaScript to:
"O" = (capital letter O) This event occurs when the page is opened
"C" = This event occurs when the page is closed
JavaScript This is the JavaScript to execute when the event occurs.

Return values

0 The specified ActionType was not valid
1 The JavaScript was added successfully

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport