LONG OpenDocumentAction { get; set; } |
Set the OpenDocumentAction property with the index of the action. The specified action is started after the PDF document opens.
The action index is returned by action creating functions, such as CreateJavascriptAction.
Equivalent in new interface: IPDFDocument4::OnOpenDocument.
{ PDF object is supposed to be created } PDF.BeginDoc; i := PDF.CreateJavascriptAction("app.alert('Document is opened.')"); PDF.OpenDocumentAction := i; PDF.EndDoc;
// PDF object is supposed to be created PDF->BeginDoc(); LONG i = PDF->CreateJavascriptAction("app.alert('Document is opened.')"); PDF->OpenDocumentAction = i; PDF->EndDoc();
// PDF object is supposed to be created PDF.BeginDoc(); long i = PDF.CreateJavascriptAction("app.alert('Document is opened.')"); PDF.OpenDocumentAction = i; PDF.EndDoc();
' PDF object is supposed to be created PDF.BeginDoc i = PDF.CreateJavascriptAction("app.alert('Document is opened.')") PDF.OpenDocumentAction = i PDF.EndDoc