Components for Developers
© 2000-2012, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Outlines
PDFOUTLINENODE_Action

See Also Example
Collapse All

This property gets or sets the action of the current node.

Syntax

LONG PDFOUTLINENODE_Action { get; set; }
Value
Index of the action. This index can be retrieved from any action creating function such as CreateJavascriptAction.

Remarks

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.

Example

Changing an Outline Node's Action

Delphi
[copy to clipboard]
{ 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;
C/C++
[copy to clipboard]
// 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();
C#
[copy to clipboard]
// 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();
Visual Basic
[copy to clipboard]
' 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

See Also

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2012, Two Pilots