IacDocument.RootBookmark Property

The RootBookmark property gives access to the whole bookmark tree from the document object.

Syntax

Visual Basic .NET:

Public ReadOnly Property RootBookmark () As Amyuni.PDFCreator.IacBookmark

C#:

public Amyuni.PDFCreator.IacBookmark RootBookmark [get]

Return Value

Returns an object of type IacBookmark that represents the starting node of the bookmark tree

Remarks

 

Example

acPDFCreatorLib.Initialize()
acPDFCreatorLib.SetLicenseKey("Evaluation Versoin", "07EFCDAB0...FCC91")
Dim file1 As New System.IO.FileStream("AddPages.pdf", System.IO.FileMode.Open)
Dim file2 As New System.IO.FileStream("Bookmarked.pdf", System.IO.FileMode.Create)
 
'Create New Bookmarks
Dim root As Amyuni.PDFCreator.IacBookmark
Dim child As Amyuni.PDFCreator.IacBookmark
Dim doc As New Amyuni.PDFCreator.IacDocument(PdfCreator1)
 
With doc
    doc.Open(file1, "")
    root = doc.RootBookmark
    child = root.InsertChild(0, "Pages [1]", "")
    .Save(file2)
End With
doc.Dispose() 'Delete the doc object
acPDFCreatorLib.Initialize();
acPDFCreatorLib.SetLicenseKey("Evaluation Versoin", "07EFCDAB0...FCC91");
System.IO.FileStream file1 = new System.IO.FileStream("AddPages.pdf", FileMode.Open);
System.IO.FileStream file2 = new System.IO.FileStream("Bookmarked.pdf", FileMode.Create);
 
//Create New Bookmarks
IacBookmark root;
IacBookmark child;
 
pdfCreator1.Document.Open(file1, "");
root = pdfCreator1.Document.RootBookmark;
child = root.InsertChild(0, "Pages [1]", "");
pdfCreator1.Document.Save(file2);