// Uncomment this command to remove any existing
// bookmarks in the output PDF document
// PrinterObj.ClearPDFElements(peBookmarks);
// Add a top-level bookmark to page 1
PrinterObj.AddPDFBookmark(
'Section-1', // boomkark text
1, // bookmark level
50, // viewer top edge at 50 points down page 1
1); // number of the linked page
// Add a bookmark one level deeper than previous bookmark
PrinterObj.AddPDFBookmark('Section-1.1', 2, 200, 1);
// Add a top-level bookmark below the first bookmark
PrinterObj.AddPDFBookmark('Section-2', 1, 400, 1);
// Add a bookmark one level deeper than
// the second top-level bookmark
PrinterObj.AddPDFBookmark('Section-2.1', 2, 550, 1);
// Add a bookmark one level deeper than previous bookmark
PrinterObj.AddPDFBookmark('Section-2.1.1', 3, 750, 1);
// Uncomment this command to remove any existing
// bookmarks in the output PDF document
// PrinterObj.ClearPDFElements(
// (int)TxgtPDFElements.peBookmarks);
// Add a top-level bookmark to page 1
PrinterObj.AddPDFBookmark(
"Section-1", // bookmark text
1, // bookmark level
50, // viewer top edge at 50 points down page 1
1); // number of the linked page
// Add a bookmark one level deeper than previous bookmark
PrinterObj.AddPDFBookmark("Section-1.1", 2, 200, 1);
// Add a top-level bookmark below the first bookmark
PrinterObj.AddPDFBookmark("Section-2", 1, 400, 1);
// Add a bookmark one level deeper than the second
// top-level bookmark
PrinterObj.AddPDFBookmark("Section-2.1", 2, 550, 1);
// Add a bookmark one level deeper than previous bookmark
PrinterObj.AddPDFBookmark("Section-2.1.1", 3, 750, 1);
' Uncomment next line to remove any previous
' bookmarks for the output PDF document
' PrinterObj.ClearPDFElements(TxgtPDFElements.peBookmarks)
' Add a top-level bookmark to page 1
PrinterObj.AddPDFBookmark( _
"Section-1", _ ' bookmark text
1, _ ' bookmark level
50, _ ' viewer top edge at 50 points down page 1
1) ' number of the linked page
' Add a bookmark one level deeper than previous bookmark
PrinterObj.AddPDFBookmark "Section-1.1", 2, 200, 1
' Add a top-level bookmark below the first bookmark
PrinterObj.AddPDFBookmark "Section-2", 1, 400, 1
' Add a bookmark one level deeper than the
' second top-level bookmark
PrinterObj.AddPDFBookmark "Section-2.1", 2, 550, 1
' Add a bookmark one level deeper than previous bookmark
PrinterObj.AddPDFBookmark "Section-2.1.1", 3, 750, 1
|