PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis property gets or sets an action to be performed when the document is opened.
|
| LONG OnOpenDocument { get; set; } |
Value
Number of the action
Remarks
The number of the action can be retrieved from any action-creating method, such as CreateJavaScriptAction.
Example
Using the OnOpenDocument Property
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
a := PDF.CreateJavascriptAction('app.alert("Document is opened.")');
PDF.OnOpenDocument = a;
PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
long a = PDF->CreateJavascriptAction("app.alert('Document is opened.')");
PDF->OnOpenDocument = a;
PDF->SaveToFile("test.pdf", true);
C#
[copy to clipboard]
// PDF object is supposed to be created
long a = PDF.CreateJavascriptAction("app.alert('Document is opened.')");
PDF.OnOpenDocument = a;
PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
a = PDF.CreateJavascriptAction("app.alert('Document is opened.')")
PDF.OnOpenDocument = a
PDF.SaveToFile "test.pdf", true
See Also
Reference


