PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllGets the first node in the tree view.
|
| LONG PDFOUTLINES_GetFirstNode () |
Return value
The first node index in the tree view.
Remarks
The method returns the first tree node in the tree of the outline items.
Analogue in new interface: no analogue, see IPDFDocument4::GetRootOutline.
Example
GetFirstNode example
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
lAction := PDF.CreateGoToPageAction(0, 0);
PDF.PDFOUTLINES_Add(0, 'Outline1', lAction, charsetANSI_CHARSET);
PDF.PDFOUTLINES_Add(0, 'Outline2', lAction, charsetANSI_CHARSET);
ind := PDF.PDFOUTLINES_GetFirstNode;
PDF.PDFOUTLINES_AddChild(ind, 'Outline3', lAction, charsetANSI_CHARSET);
PDF.PDFOUTLINES_AddChild(ind, 'Outline4', lAction, charsetANSI_CHARSET);
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created PDF->BeginDoc(); LONG lAction = PDF->CreateGoToPageAction(0, charsetANSI_CHARSET); PDF->PDFOUTLINES_Add(0, "Outline1", lAction, charsetANSI_CHARSET); PDF->PDFOUTLINES_Add(0, "Outline2", lAction, charsetANSI_CHARSET); LONG ind = PDF->PDFOUTLINES_GetFirstNode(); PDF->PDFOUTLINES_AddChild(ind, "Outline3", lAction, charsetANSI_CHARSET); PDF->PDFOUTLINES_AddChild(ind, "Outline4", lAction, charsetANSI_CHARSET); PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created PDF.BeginDoc(); long lAction = PDF.CreateGoToPageAction(0, 0); PDF.PDFOUTLINES_Add(0, "Outline1", lAction, TxFontCharset.charsetANSI_CHARSET); PDF.PDFOUTLINES_Add(0, "Outline2", lAction, TxFontCharset.charsetANSI_CHARSET); long ind = PDF.PDFOUTLINES_GetFirstNode(); PDF.PDFOUTLINES_AddChild(ind, "Outline3", lAction, TxFontCharset.charsetANSI_CHARSET); PDF.PDFOUTLINES_AddChild(ind, "Outline4", lAction, TxFontCharset.charsetANSI_CHARSET); PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.BeginDoc lAction = PDF.CreateGoToPageAction(0, 0) PDF.PDFOUTLINES_Add 0, "Outline1", lAction, 0 PDF.PDFOUTLINES_Add 0, "Outline2", lAction, 0 ind = PDF.PDFOUTLINES_GetFirstNode() PDF.PDFOUTLINES_AddChild ind, "Outline3", lAction, 0 PDF.PDFOUTLINES_AddChild ind, "Outline4", lAction, 0 PDF.EndDoc
See Also
Reference


