Your technology certification is waiting. Enroll in Cloud Class ®
function DumpBookmark(rep, bkm, nLevel)
if (DBM_line >= 50)
DBM_line = 0;
rep.writeText("+-" + bkm.name);
if (bkm.children != null)
for (var i = 0; i < bkm.children.length; i++)
DumpBookmark(rep, bkm.children[i], nLevel + 1);
// Open a new report
var rep = new Report();
rep.size = 1.2;
rep.color = color.blue;
rep.writeText("Summary of Bookmarks:");
rep.size = 1.0;
rep.color = color.black;
DumpBookmark(rep, this.bookmarkRoot, 0);
// Now open the report
var docRep = rep.open("myreport.pdf");
docRep.info.Title = "Bookmarks Summary";
DBM_line = 0;
var DBM_line = 0;
// add the menu item
cName: "dumpBookmarksToReport", // this is the internal name used for this menu item
cUser: "Dump Bookmarks", // this is the label that is used to display the menu item
cParent: "Document", // this is the parent menu. The file menu would use "File"
cEnable: "event.rc = (event.target != null);", // when should this menu item be active?
Open in new window
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.