• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
0

I want to print out my bookmarks ONLY?

New Here ,
Feb 28, 2017 Feb 28, 2017

Copy link to clipboard

Copied

I have a large adobe procedures file and need to print out just the bookmarks in the order I have them setup.

Have tried everything -

TOPICS
Print and prepress

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 30, 2017 Jun 30, 2017

Not sure if this is exactly what you are looking for, however the following script will create a new PDF listing each bookmark on each page. You can use an Acrobat Action to run the JavaScript code:

/* List all Bookmarks */

/* Recursively work through bookmark tree  */

function PrintBookmarks(bm, nLevel)

{

    if (nLevel != 0) { // don't print the root

        bmReport.absIndent=bmTab*(nLevel-1);

bm.execute();

        bmReport.writeText("(page# "+(bm.doc.pageNum +1)+ ") "+bm.name);

      lineCount += 1;

 

...

Votes

Translate

Translate
Community Expert ,
Jun 30, 2017 Jun 30, 2017

Copy link to clipboard

Copied

LATEST

Not sure if this is exactly what you are looking for, however the following script will create a new PDF listing each bookmark on each page. You can use an Acrobat Action to run the JavaScript code:

/* List all Bookmarks */

/* Recursively work through bookmark tree  */

function PrintBookmarks(bm, nLevel)

{

    if (nLevel != 0) { // don't print the root

        bmReport.absIndent=bmTab*(nLevel-1);

bm.execute();

        bmReport.writeText("(page# "+(bm.doc.pageNum +1)+ ") "+bm.name);

      lineCount += 1;

          if (lineCount >= pageMax) {

          bmReport.breakPage();

          lineCount = 0;}

          }

    if (bm.children != null)

          for (var i = 0; i < bm.children.length; i++)

            PrintBookmarks(bm.children, nLevel + 1);

}

lineCount = 0;

pageMax = 50;

bmTab = 20;

bmReport = new Report();

bmReport.size = 2;

bmReport.writeText(this.title);

bmReport.writeText(" ");

bmReport.size = 1.5;

bmReport.writeText("Listing of Bookmarks");

bmReport.writeText(" ");

bmReport.size = 1;

PrintBookmarks(this.bookmarkRoot, 0);

global.bmRep = bmReport;  // make global

global.wrtDoc = app.setInterval(

    'try {'

    +'      reportDoc = global.bmRep.open("Listing of Bookmarks");'

    +'      console.println("Executed Report.open");'

    +'      app.clearInterval(global.wrtDoc);'

    +'      delete global.wrtDoc;'

    +'      console.println("Executed App.clearInterval");'

    +'      reportDoc.info.title = "Bookmark Listings";'

    +'      reportDoc.info.Author = "List Bookmark Sequence";'

    +'} catch (e) {console.println("Waiting...: " + e);}'

    , 100);

action.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines