PDFOUTLINES_GetFirstNode
IPDFDocument3 :: Outlines

See Also Example
Collapse All

This method gets the first node in the outline tree.

Syntax

LONG PDFOUTLINES_GetFirstNode ()
Return value
Index of the first node in the outline tree

Remarks

This method returns the first node in the tree of the outline items.

Equivalent in new interface: None. See IPDFDocument4::GetRootOutline instead.

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