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 TQuickPDF0813.DocJavaScriptAction(ActionType, 
  JavaScript: WideString): Integer;

ActiveX

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

DLL

int QuickPDFDocJavaScriptAction(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 © 2011 Debenu. All rights reserved. AboutContactBlogNewsletterSupportBuyForum