How to Extract All Bookmarked PDF Pages as One File in Acrobat
Question details
The user needs to extract every page associated with a PDF bookmark and combine those specific pages into a single new PDF document.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Extracting and combining specific bookmarked sections from a larger PDF file for targeted distribution or review.
- Observed behavior
- The user is looking for an automated or highly efficient method to identify bookmarked pages (including nested bookmarks), handle duplicates, and output them as one unified file.
Before running any custom scripts, make sure to back up your original PDF file to prevent accidental data loss. Ensure you are using Adobe Acrobat Pro, as Acrobat Reader does not support advanced JavaScript execution for page extraction.
Use Acrobat JavaScript to Extract Bookmarked Pages
Utilize custom JavaScript code in Adobe Acrobat Pro to automate the extraction of all bookmarked pages into a single new file, bypassing the need for manual selection.
Adobe Acrobat does not feature a native one-click button to extract pages purely by bookmarks. However, you can use the built-in JavaScript engine to automate the process. This method requires a script that reads the bookmark tree, records the page numbers, removes duplicate references, and extracts the results.
Launch Adobe Acrobat Pro, open your target PDF document, and press Ctrl+J (Windows) or Cmd+J (Mac) to open the JavaScript Debugger.
Write or paste a custom JavaScript code that recursively iterates through 'this.bookmarkRoot.children' to identify all bookmarked pages, storing their page numbers in an array while filtering out duplicate values.
Include the 'this.extractPages()' method in your script, passing your cleaned array of page numbers to automatically pull the required pages and prompt a save dialog for the newly combined PDF.

Manually Extract Bookmarked Pages via Organize Pages
If you prefer not to use scripts and your PDF contains a manageable number of bookmarks, you can manually select and extract the pages.
Extract and Combine PDF Pages Effortlessly in WPS Office
WPS Office provides an incredibly intuitive graphical interface for managing, extracting, and combining PDF pages without the need for complex JavaScript coding. You can quickly view your bookmarks and extract exactly what you need.
- 1. Open Your PDF File: Launch WPS Office and open the PDF document from which you want to extract pages.
- 2. Access the Extract Tool: Navigate to the 'Page' tab located in the top navigation ribbon, and click on the 'Extract Page' tool.
- 3. Extract as One File: Enter the specific page numbers you identified from your bookmarks, select the option to extract them as a single combined file, and click 'Extract' to finish.

Frequently Asked Questions
Can I extract bookmarked pages in Adobe Acrobat Reader?
No, Adobe Acrobat Reader is a free viewer and lacks the advanced page organization and JavaScript execution features required for page extraction. You need Adobe Acrobat Pro or a powerful alternative like WPS Office.
How do I ensure duplicate bookmarked pages aren't extracted multiple times?
When manually extracting pages, simply select the page thumbnail once. If using an Acrobat JavaScript, ensure the script contains logic to filter the array of page numbers for unique values before executing the extract command.
Is there a built-in button in Acrobat to extract by bookmarks?
Adobe Acrobat does not have a native, single-click button designed specifically to extract pages based purely on bookmarks. It requires using the 'Organize Pages' tool manually or deploying a custom JavaScript.




