PDF Editing Issues

How to Automatically Create Bookmarks When Inserting PDFs

Muhammad TalhaMuhammad Talha Nov 3, 2026 869 views

Question details

The user wants to know if it is possible to automatically generate bookmarks based on inserted file names when adding new PDF documents into specific locations of an existing PDF file.

How to Automatically Create Bookmarks When Inserting PDFs
Product
Adobe Acrobat
Device & OS
not provided
Scenario
Compiling a large PDF document from multiple smaller PDF files and needing a quick way to build a navigation menu based on the inserted file names.
Observed behavior
When PDFs are inserted through the page thumbnail panel, Acrobat does not natively generate file-name bookmarks automatically without the use of scripts.
Before you start

Ensure you have all the PDF files you intend to insert saved in an easily accessible folder. It is recommended to rename these files to your desired bookmark titles beforehand to save time.

Solution 1Recommended

Use Custom JavaScript for Automatic Bookmark Creation

Since Acrobat lacks a native toggle for this, executing a custom JavaScript code can automate the process of inserting a file and creating a bookmark pointing to its first page.

While Adobe Acrobat does not automatically generate file-name bookmarks when inserting documents via the page thumbnail panel, you can use built-in JavaScript tools or Action Wizards to automate this task.

Note that running scripts requires some familiarity with the Acrobat Action Wizard and JavaScript console.

1
Open the Action Wizard

Navigate to the 'Tools' menu in Adobe Acrobat and select 'Action Wizard'.

2
Create a New Action

Click 'New Action' to start building a custom automation task that will handle the file insertion.

3
Add JavaScript Execution

Under the 'More Tools' section on the left, select 'Execute JavaScript' and add it to the action steps on the right.

4
Input the Automation Code

Click 'Specify Settings' and input a custom script designed to prompt for file selection, insert the pages, and utilize the 'addBookmark' method using the chosen file's name. Save and run the Action.

Use Custom JavaScript for Automatic Bookmark Creation
Script Availability: If you are not comfortable writing JavaScript, many third-party PDF plug-ins offer this functionality natively as a batch process.
Advanced PDF Management

Easily Combine PDFs and Manage Bookmarks with WPS Office

WPS Office offers a comprehensive and user-friendly PDF editor. You can easily merge multiple PDF files and quickly build a structured bookmark hierarchy to keep your documents organized and easy to navigate.

  1. 1. Open WPS PDF: Launch WPS Office and open your primary PDF document in the WPS PDF editor.
  2. 2. Merge or Insert Pages: Navigate to the 'Page' tab and select 'Insert Pages' or use the 'Merge PDF' tool to combine multiple documents into one file.
  3. 3. Open the Bookmark Panel: Click the Bookmark icon on the left sidebar to access the document's navigation structure.
  4. 4. Organize Your Outline: Navigate to the start of each new section, click the '+' icon in the bookmark panel to create a new bookmark, and title it according to the inserted document.
Seamlessly combine multiple PDF files into one structured document.Intuitive bookmark management panel to easily add, rename, and organize document outlines.Fully compatible with standard PDF formats and Adobe Acrobat files.Lightweight, fast-loading, and cost-effective alternative to heavy PDF software.
microsoft office alternative - wps office

Frequently Asked Questions

Can I retain original bookmarks when combining multiple PDF files?

Yes, when merging PDFs using advanced tools, the software often retains the original bookmarks of each individual document. These are typically nested under a new parent bookmark representing the respective source file.

Is there a native setting in Adobe Acrobat to automatically bookmark inserted files?

No, Adobe Acrobat does not currently feature a built-in checkbox or setting to automatically generate a bookmark from the file name when inserting pages via the thumbnail panel. This requires a JavaScript workaround or manual entry.

How do I edit or rearrange bookmarks after they are created?

To rearrange bookmarks, simply click and drag the bookmark within the Bookmarks panel to the desired position. To edit the text, right-click the bookmark, select 'Rename', type the new title, and press Enter.