Adds the bookmarks listed in an XML file to an existing PDF document.
public
void ImportBookmarksWithXML(
string XMLFile);
Parameters
- XMLFile
- The xml file containing bookmarks list.
Example
[C#]
PdfContentEditor editor = new PdfContentEditor();
string TestPath = @"E:\pdfkit\";
editor.BindPdf(TestPath + "test.pdf");
editor.AddBookmarksToXML(TestPath +"bookmarks.xml");
editor.Save(TestPath + "testSetBookmarks_out.pdf");
[Visual Basic]
Dim editor As PdfContentEditor = New PdfContentEditor()
Dim TestPath As String = @"E:\pdfkit\"
editor.BindPdf(TestPath + "test.pdf");
editor.AddBookmarksToXML(TestPath +"bookmarks.xml")
editor.Save(TestPath + "testSetBookmarks_