Skip to main content
jefft-964
Jan 13, 2026 7:06 PM UTC
Answered

FramerMaker doesn't export chapter number in bookmarks in Acrobat

When I export my manual from FrameMaker to Acrobat the chapter numbers are not in the bookmarks in Acrobat. How do I get the chapter numbers to show in chapter names in the bookmarks? 

frameexpert
frameexpertCorrect answer
Community Expert
Jan 13, 2026 11:24 PM UTC

I'll try that. I was hoping to export from FrameMarker to get the chapters in the bookmarks instead of renaming the bookmarks in Acrobat. 


Here is an Acrobat JavaScript. I will post a video link explaining how it works and how to use it.

if (app.viewerVersion >= 10) {

    // Add a toolbutton for the command.
    app.addToolButton ({cName: "NumberBookmarksCmd",
        cTooltext: "Number Bookmarks",
        cExec: "numberBookmarks();",
        cEnable: "event.rc = (event.target != null);",
        nPos: 0 });

} 
else { // 9 or below.
  
    // Add the Convert Bookmarks to Title Case menu item to the Document menu.
    app.addMenuItem ({cName: "NumberBookmarksCmd",
        cUser:"Number Bookmarks",
        cParent: "Document",
        cExec: "numberBookmarks();",
        cEnable: "event.rc = (event.target != null);" });
}

// Make a global counter variable to count the bookmarks
// that should be numbered.
counter = 0;

function numberBookmarks () {
	
	processBookmarks (this.bookmarkRoot);
}

function processBookmarks (bkm) {

    var numberRegex = /^Body \- (.+)$/,
        otherRegex = /^[^-]+ \- (.+)$/;
    
    if (numberRegex.test (bkm.name) === true) {
        counter += 1;
        bkm.name = bkm.name.replace (numberRegex, "Ch " + counter + " $1");
    }
    else {
        bkm.name = bkm.name.replace (otherRegex, "$1");
    }

    if (bkm.children != null) {
        for (var i = 0; i < bkm.children.length; i++) {
            processBookmarks (bkm.children[i]); 
        } 
    }
}
www.frameexpert.com

27 replies

Dave Creamer of IDEAS
Community Expert
Community Expert
Jan 14, 2026 3:40 PM UTC

I'm getting chapter numbers on my bookmarks. Using the latest version but I don't remember anything different for older versions. I'm using auto-numbering on my headings.

874489i6350D5CCAC5CA71E.png

 

Translate
David Creamer: Community Expert (ACI and ACE 1995-2023)
frameexpert
Community Expert
Community Expert
Jan 14, 2026 4:06 PM UTC

Mine are too using FrameMaker 17.0.6. I should have asked more questions. I wonder if the original poster is actually using autonumbers in his chapter titles.

Translate
www.frameexpert.com
jefft-964
jefft-964Author
Jan 14, 2026 4:07 PM UTC

No, we are not.

Translate
Jeff_Coatsworth
Community Expert
Community Expert
Jan 13, 2026 7:12 PM UTC

What version of FM? Structured or Unstructured? How are you creating the PDF? Publish to PDF or Print to Adobe PDF printer instance?

Translate
jefft-964
jefft-964Author
Jan 13, 2026 7:27 PM UTC

Version: 14.0.4.511. Not sure on structured or Unstructured. In FrameMarker, File> Save As PDF

 

Translate
Jeff_Coatsworth
Community Expert
Community Expert
Jan 13, 2026 7:48 PM UTC

So that's FM2017 - quite a ways behind the times. Was this working before and now it's not or has it never worked?

Translate