LEADTOOLS PDF (Leadtools.Pdf assembly)
LEAD Technologies, Inc

WriteBookmarks Method






A list of PDFBookmark objects to write.
Name of the destination PDF file to be created. If the value of this parameter is null (Nothing in Visual Basic) then the file name set in FileName will be updated.
Writes bookmarks to an existing PDF file.
Syntax
public void WriteBookmarks( 
   IList<PDFBookmark> bookmarks,
   string destinationFileName
)
'Declaration
 
Public Sub WriteBookmarks( _
   ByVal bookmarks As IList(Of PDFBookmark), _
   ByVal destinationFileName As String _
) 
'Usage
 
Dim instance As PDFFile
Dim bookmarks As IList(Of PDFBookmark)
Dim destinationFileName As String
 
instance.WriteBookmarks(bookmarks, destinationFileName)
 function Leadtools.Pdf.PDFFile.WriteBookmarks( 
   bookmarks ,
   destinationFileName 
)
public:
void WriteBookmarks( 
   IList<PDFBookmark>^ bookmarks,
   String^ destinationFileName
) 

Parameters

bookmarks
A list of PDFBookmark objects to write.
destinationFileName
Name of the destination PDF file to be created. If the value of this parameter is null (Nothing in Visual Basic) then the file name set in FileName will be updated.
Remarks

You can use this method to create a Table of Contents (TOC) for a PDF file. For more information, refer to PDFBookmark.

You can create a bookmarks list from scratch and populate with the bookmarks required, or you can read the bookmarks of a PDF file using PDFDocument.ParseDocumentStructure with the PDFParseDocumentStructureOptions.Bookmarks included in the options parameter. Modify these bookmarks then write them back to the file.

Example

For an example, refer to PDFDocument.ParseDocumentStructure.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PDFFile Class
PDFFile Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.