PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis method returns the index of the active node.
|
| LONG GetCurrentPDFOutlineNode () |
Return value
Index of the current node
Remarks
This method returns the index of an outline node which is currently being handled by PDFOUTLINENODE_* commands.
The return value is an outline identifier in the document's outlines collection and can be used in SetCurrentPDFOutlineNode, PDFOUTLINES_Add, PDFOUTLINES_AddChild, PDFOUTLINES_AddFirst, PDFOUTLINES_Insert.
Example
Getting the Current Outline Node
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
lAction := PDF.CreateGoToPageAction(0, 0);
ind1 := PDF.PDFOUTLINES_Add(0, 'Outline 1', lAction, charsetANSI_CHARSET);
ind2 := PDF.GetCurrentPDFOutlineNode;
{ ind1 = ind2 }
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, "Outline 1", lAction, charsetANSI_CHARSET); long ind2 = PDF->GetCurrentPDFOutlineNode(); // ind1 = ind2 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, "Outline 1", lAction, TxFontCharset.charsetANSI_CHARSET); long ind2 = PDF.GetCurrentPDFOutlineNode(); // ind1 = ind2 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, "Outline 1", lAction, 0) ind2 = PDF.GetCurrentPDFOutlineNode ' ind1 = ind2 PDF.EndDoc
See Also


