LONG PDFOUTLINES_Insert ( LONG nodeIndex, BSTR nodeTitle, LONG actionIndex, TxFontCharset charset ) |
This method adds a new node to a tree before the node specified by the nodeIndex parameter. Use PDFOUTLINES_AddFirst and PDFOUTLINES_Add to add node as the first or last sibling of the node specified by the nodeIndex parameter.
This method returns the node that has been added. An action (with an index specified by actionIndex) executes when a user clicks the created node. The created node contains the nodeTitle parameter as the node's text in a charset code page.
Equivalent in new interface: IPDFDocument4::AddOutlineBefore, IPDFDocument4::AddUnicodeOutlineBefore.
{ PDF object is supposed to be created } PDF.BeginDoc; lAction := PDF.CreateGoToPageAction(0, 0); PDF.PDFOUTLINES_Add(0, 'Outline 1', lAction, charsetANSI_CHARSET); PDF.PDFOUTLINES_Add(0, 'Outline 2', lAction, charsetANSI_CHARSET); PDF.PDFOUTLINES_Add(0, 'Outline 3', lAction, charsetANSI_CHARSET); PDF.PDFOUTLINES_Add(0, 'Outline 4', lAction, charsetANSI_CHARSET; i := PDF.PDFOUTLINES_Add(0, 'Outline 5', lAction, charsetANSI_CHARSET); PDF.PDFOUTLINES_Insert(i, 'Outline 4.5', lAction, charsetANSI_CHARSET); PDF.EndDoc;
// PDF object is supposed to be created PDF->BeginDoc(); LONG lAction = PDF->CreateGoToPageAction(0, 0); PDF->PDFOUTLINES_Add(0, "Outline 1", lAction, charsetANSI_CHARSET); PDF->PDFOUTLINES_Add(0, "Outline 2", lAction, charsetANSI_CHARSET); PDF->PDFOUTLINES_Add(0, "Outline 3", lAction, charsetANSI_CHARSET); PDF->PDFOUTLINES_Add(0, "Outline 4", lAction, charsetANSI_CHARSET); LONG i = PDF->PDFOUTLINES_Add(0, "Outline 5", lAction, charsetANSI_CHARSET); PDF->PDFOUTLINES_Insert(i, "Outline 4.5", lAction, charsetANSI_CHARSET); PDF->EndDoc();
// PDF object is supposed to be created PDF.BeginDoc(); long lAction = PDF.CreateGoToPageAction(0, 0); PDF.PDFOUTLINES_Add(0, "Outline 1", lAction, TxFontCharset.charsetANSI_CHARSET); PDF.PDFOUTLINES_Add(0, "Outline 2", lAction, TxFontCharset.charsetANSI_CHARSET); PDF.PDFOUTLINES_Add(0, "Outline 3", lAction, TxFontCharset.charsetANSI_CHARSET); PDF.PDFOUTLINES_Add(0, "Outline 4", lAction, TxFontCharset.charsetANSI_CHARSET); long i = PDF.PDFOUTLINES_Add(0, "Outline 5", lAction, TxFontCharset.charsetANSI_CHARSET); PDF.PDFOUTLINES_Insert(i, "Outline 4.5", lAction, TxFontCharset.charsetANSI_CHARSET); PDF.EndDoc();
' PDF object is supposed to be created PDF.BeginDoc lAction = PDF.CreateGoToPageAction(0, 0) PDF.PDFOUTLINES_Add 0, "Outline 1", lAction, 0 PDF.PDFOUTLINES_Add 0, "Outline 2", lAction, 0 PDF.PDFOUTLINES_Add 0, "Outline 3", lAction, 0 PDF.PDFOUTLINES_Add 0, "Outline 4", lAction, 0 i = PDF.PDFOUTLINES_Add(0, "Outline 5", lAction, 0) PDF.PDFOUTLINES_Insert i, "Outline 4.5", lAction, 0 PDF.EndDoc