Debenu Quick PDF logo

DocJavaScriptAction

Document properties, JavaScript

Description

This function is used to add JavaScript to document events. This JavaScript will be executed when, for example, the document is closed or printed.

Syntax

Delphi

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

ActiveX

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

DLL

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

Parameters

ActionType The event to attach the JavaScript to:
"WC" = Will close
"WS" = Will save
"DS" = Did save
"WP" = Will print
"DP" = Did print
JavaScript The JavaScript to attach to the event.

Return values

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

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport