PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis method clears the outline tree.
|
| HRESULT PDFOUTLINES_Clear () |
Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.
Remarks
The method deletes all tree nodes contained in the list managed by PDFOOUTLINES_* commands.
Equivalent in new interface: IPDFDocument4::RemoveOutlines.
Example
Clear Outlines
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
lAction := PDF.CreateGoToPageAction(0, 0);
i0 := PDF.PDFOUTLINES_Add(0, '0', lAction, charsetANSI_CHARSET);
i1 := PDF.PDFOUTLINES_Add(0, '1', lAction, charsetANSI_CHARSET);
{ we change our mind, do not create outlines }
PDF.PDFOUTLINES_Clear;
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created PDF->BeginDoc(); LONG lAction = PDF->CreateGoToPageAction(0, 0); LONG i0 = PDF->PDFOUTLINES_Add(0, "0", lAction, charsetANSI_CHARSET); LONG i1 = PDF->PDFOUTLINES_Add(0, "1", lAction, charsetANSI_CHARSET); // we change our mind, do not create outlines PDF->PDFOUTLINES_Clear(); PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created PDF.BeginDoc(); long lAction = PDF.CreateGoToPageAction(0, 0); long i0 = PDF.PDFOUTLINES_Add(0, "0", lAction, TxFontCharset.charsetANSI_CHARSET); long i1 = PDF.PDFOUTLINES_Add(0, "1", lAction, TxFontCharset.charsetANSI_CHARSET); // we change our mind, do not create outlines PDF.PDFOUTLINES_Clear(); PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.BeginDoc lAction = PDF.CreateGoToPageAction(0, 0) i0 = PDF.PDFOUTLINES_Add(0, "0", lAction, 0) i1 = PDF.PDFOUTLINES_Add(0, "1", lAction, 0) ' we change our mind, do not create outlines PDF.PDFOUTLINES_Clear PDF.EndDoc
See Also
Reference


