How to Use PDF Document Titles for Bookmarks When Combining Files
Question details
The user wants to automatically use the internal document titles from PDF metadata as bookmark names instead of the default filenames when merging multiple PDF documents.

- Product
- PDF Editors
- Device & OS
- not provided
- Scenario
- Combining multiple PDF chapters or files into a single, cohesive document.
- Observed behavior
- The PDF editor defaults to using the original filenames for the generated bookmarks instead of the actual document titles stored in the file metadata.
Verify that all your source PDF files actually have the correct Document Title populated in their metadata (usually found in Document Properties > Description).
Automate Bookmark Renaming Using Acrobat JavaScript
Use a custom JavaScript in Adobe Acrobat to read the document titles and apply them to bookmarks after merging.
When combining files, Acrobat natively uses filenames for top-level bookmarks. To change this automatically, you can execute a console script that iterates through the bookmarks and retrieves the title metadata from the originally embedded files.
Combine your PDF files as you normally would and open the resulting merged document in Adobe Acrobat.
Press 'Ctrl + J' (Windows) or 'Cmd + J' (Mac) to open the JavaScript Debugger console.
Paste a custom JavaScript designed to loop through the root bookmarks, read the 'Document Title' metadata of the destination pages, and replace the bookmark names.
Highlight the pasted code and press 'Ctrl + Enter' to run it, which will update all bookmarks instantly.

Use a Third-Party PDF Automation Plug-in
Install a plug-in specifically designed for advanced bookmark management to rename them without coding.
Merge PDFs and Manage Bookmarks Effortlessly with WPS Office
WPS Office provides a comprehensive and user-friendly PDF toolkit. You can easily merge multiple PDF files into one and customize your bookmarks without dealing with complex JavaScript or expensive plug-ins.
- 1. Access the Merge Tool: Open WPS Office, navigate to the 'PDF' tab, and select 'Merge PDF' from the toolbar.
- 2. Add and arrange files: Add all the PDF files you want to combine and drag them to arrange them in the correct order.
- 3. Combine the documents: Click 'Merge' to generate your single, combined PDF document.
- 4. Edit bookmarks manually: Open the newly merged PDF, click the 'Bookmark' icon on the left navigation pane, and easily rename or add new bookmarks to match your document titles.

Frequently Asked Questions
Why do PDF editors use filenames instead of document titles for bookmarks?
By default, PDF editors use the filename because it is a guaranteed attribute of every file. Internal metadata like 'Document Title' is frequently left blank by users when creating the PDF, which would result in blank bookmarks if used as the default.
How do I check if my PDF has a Document Title?
Open the PDF, go to File > Properties (or Document Properties), and look at the Description tab. The 'Title' field displays the document title stored in the file's metadata.
Can I manually rename bookmarks after combining PDFs?
Yes. In almost all PDF editors, you can open the Bookmarks panel, right-click any bookmark, select 'Rename', and manually type in the desired document title.
Is it possible to combine PDFs without creating bookmarks automatically?
Yes. When using the 'Combine Files' tool in most standard PDF editors, you can access the options or settings menu and uncheck the option to 'Add bookmarks to merged document'.




