LONG GetCurrentPDFOutlineNode () |
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.
{ 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;
// 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();
// 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();
' 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