This property gets or sets the action of the current node.
LONG PDFOUTLINENODE_Action { get; set; } |
This property contains the action that is executed when a user clicks a node. You can change any node attributes during run-time. See PDFOUTLINENODE_Title, PDFOUTLINENODE_Charset.
Equivalent in new interface: IPDFDocument4::GetOutlineAction, IPDFDocument4::SetOutlineAction.
{ PDF object is supposed to be created } PDF.BeginDoc; lAction := PDF.CreateGoToPageAction(0, 0); ind1 := PDF.PDFOUTLINES_Add(0, 'Click me', lAction, charsetANSI_CHARSET); PDF.PDFOUTLINENODE_Action := PDF.CreateJavascriptAction('app.alert("Hello.")'); PDF.EndDoc;
// PDF object is supposed to be created PDF->BeginDoc(); LONG lAction = PDF->CreateGoToPageAction(0, 0); LONG ind1 = PDF->PDFOUTLINES_Add(0, "Click me", lAction, charsetANSI_CHARSET); PDF->PDFOUTLINENODE_Action = PDF->CreateJavascriptAction("app.alert('Hello.')"); PDF->EndDoc();
// PDF object is supposed to be created PDF.BeginDoc(); long lAction = PDF.CreateGoToPageAction(0, 0); long ind1 = PDF.PDFOUTLINES_Add(0, "Click me", lAction, TxFontCharset.charsetANSI_CHARSET); PDF.PDFOUTLINENODE_Action = PDF.CreateJavascriptAction("app.alert('Hello.')"); PDF.EndDoc();
' PDF object is supposed to be created PDF.BeginDoc lAction = PDF.CreateGoToPageAction(0, 0) ind1 = PDF.PDFOUTLINES_Add(0, "Click me", lAction, 0) PDF.PDFOUTLINENODE_Action = PDF.CreateJavascriptAction("app.alert('Hello.')") PDF.EndDoc