PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis property gets the number of nodes in the outline tree.
|
| LONG PDFOUTLINES_Count { get; } |
Value
NumberĀ of nodes in the outline tree
Remarks
The property indicates the number of nodes maintained by the PDFOUTLINES_* commands.
Equivalent in new interface: IPDFDocument4::GetOutlineCount.
Example
Getting the Number of Nodes
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
lAction := PDF.CreateGoToPageAction(0, 0);
o1 := PDF.PDFOUTLINES_Add(0, 'Outline1', lAction, charsetANSI_CHARSET);
o2 := PDF.PDFOUTLINES_AddChild(o1, 'Outline2', lAction, charsetANSI_CHARSET);
o3 := PDF.PDFOUTLINES_Add(0, 'Outline3', lAction, charsetANSI_CHARSET);
o4 := PDF.PDFOUTLINES_AddChild(o3, 'Outline4', lAction, charsetANSI_CHARSET);
o5 := PDF.PDFOUTLINES_AddChild(o3, 'Outline5', lAction, charsetANSI_CHARSET);
cnt := PDF.PDFOUTLINES_Count; { cnt = 5 }
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created PDF->BeginDoc(); LONG lAction = PDF->CreateGoToPageAction(0, 0); LONG o1 = PDF->PDFOUTLINES_Add(0, "Outline1", lAction, charsetANSI_CHARSET); LONG o2 = PDF->PDFOUTLINES_AddChild(o1, "Outline2", lAction, charsetANSI_CHARSET); LONG o3 = PDF->PDFOUTLINES_Add(0, "Outline3", lAction, charsetANSI_CHARSET); LONG o4 = PDF->PDFOUTLINES_AddChild(o3, "Outline4", lAction, charsetANSI_CHARSET); LONG o5 = PDF->PDFOUTLINES_AddChild(o3, "Outline5", lAction, charsetANSI_CHARSET); LONG cnt = PDF->PDFOUTLINES_Count; // cnt = 5 PDF.EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created PDF.BeginDoc(); long lAction = PDF.CreateGoToPageAction(0, 0); long o1 = PDF.PDFOUTLINES_Add(0, "Outline1", lAction, TxFontCharset.charsetANSI_CHARSET); long o2 = PDF.PDFOUTLINES_AddChild(o1, "Outline2", lAction, TxFontCharset.charsetANSI_CHARSET); long o3 = PDF.PDFOUTLINES_Add(0, "Outline3", lAction, TxFontCharset.charsetANSI_CHARSET); long o4 = PDF.PDFOUTLINES_AddChild(o3, "Outline4", lAction, TxFontCharset.charsetANSI_CHARSET); long o5 = PDF.PDFOUTLINES_AddChild(o3, "Outline5", lAction, TxFontCharset.charsetANSI_CHARSET); long cnt = PDF.PDFOUTLINES_Count; // cnt = 5 PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.BeginDoc lAction = PDF.CreateGoToPageAction(0, 0) o1 = PDF.PDFOUTLINES_Add(0, "Outline1", lAction, 0) o2 = PDF.PDFOUTLINES_AddChild(o1, "Outline2", lAction, 0) o3 = PDF.PDFOUTLINES_Add(0, "Outline3", lAction, 0) o4 = PDF.PDFOUTLINES_AddChild(o3, "Outline4", lAction, 0) o5 = PDF.PDFOUTLINES_AddChild(o3, "Outline5", lAction, 0) cnt = PDF.PDFOUTLINES_Count ' cnt = 5 PDF.EndDoc
See Also
Reference


