PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllAn action to be performed when the document is opened.
|
| LONG OpenDocumentAction { get; set; } |
Value
Action index.
Remarks
Set the OpenDocumentAction property with the index of the action. The specified action is started after the PDF document opens.
Action index returned by action creating functions, such as CreateJavascriptAction.
Analogue in new interface: IPDFDocument4::OnOpenDocument.
Example
Using OpenDocumentAction property
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
i := PDF.CreateJavascriptAction("app.alert('Document is opened.')");
PDF.OpenDocumentAction := i;
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();
LONG i = PDF->CreateJavascriptAction("app.alert('Document is opened.')");
PDF->OpenDocumentAction = i;
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
long i = PDF.CreateJavascriptAction("app.alert('Document is opened.')");
PDF.OpenDocumentAction = i;
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc
i = PDF.CreateJavascriptAction("app.alert('Document is opened.')")
PDF.OpenDocumentAction = i
PDF.EndDoc
See Also
Reference


