How to Split a PDF by Bookmarks with Nonconsecutive Page Ranges
Question details
The user needs to split a PDF document based on top-level bookmarks, but the pages associated with these bookmarks are not in a continuous sequence.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- The user wants to separate a large PDF into multiple files organized by top-level bookmarks, where the content for each bookmark is scattered across different, nonconsecutive page ranges.
- Observed behavior
- The standard split-by-bookmark feature only extracts the first consecutive page range for a given bookmark, entirely ignoring the rest of the scattered pages associated with it.
Before applying custom scripts or altering your document's bookmark hierarchy, ensure you save a backup copy of your original PDF to prevent accidental data loss.
Use a Custom JavaScript Tool or Acrobat Plugin
Since native features cannot handle nonconsecutive ranges, using a dedicated JavaScript or a third-party Acrobat script is the most reliable automated method.
Standard PDF editors rely on a linear page structure when dividing documents. When a top-level bookmark spans multiple, interrupted page sequences, a script is required to loop through the document, read all page destinations associated with that bookmark, and extract them into a single comprehensive file.
Find and download a reliable custom Acrobat script or paid tool specifically designed for extracting nonconsecutive bookmarks or lowest-level bookmarks.
Load the downloaded JavaScript file into your PDF editor's Action Wizard, custom tools panel, or JavaScript console.
Execute the script from your tools menu and set the criteria for splitting your document, ensuring it targets the correct bookmark levels.
Select a designated output folder and allow the script to process the document, generating new PDF files that accurately group your nonconsecutive pages.

Reorganize Bookmarks and Pages into Consecutive Ranges
Manually restructure your PDF pages so that scattered sections belonging to the same bookmark sit consecutively.
Split Using Lowest-Level Bookmarks and Merge
Split the document into smaller pieces using lower-level bookmarks, then manually combine the relevant files.
Easily Extract Custom PDF Pages with WPS Office
While automated splitting by nonconsecutive bookmarks often requires complex scripts, WPS Office provides a highly intuitive Page Management tool. You can effortlessly select, extract, and combine scattered page ranges manually into a single PDF without needing expensive software or coding knowledge.
- 1. Open your PDF in WPS Office: Launch WPS Office, click on 'Open', and select the PDF document you wish to edit.
- 2. Navigate to the Page tab: Click on the 'Page' tab in the top ribbon to access the comprehensive page management tools.
- 3. Select the Extract tool: Click on 'Extract Pages' and choose the 'Custom range' option in the dialog box.
- 4. Input nonconsecutive pages: Type your scattered page numbers (e.g., 1-3, 5, 8-10) and click 'Extract' to instantly generate a new, combined PDF file.

Frequently Asked Questions
Why does my PDF editor only extract the first few pages of a bookmark?
Standard PDF editors use a linear extraction method. They look for the starting page of a bookmark and stop extracting when they encounter the starting page of the next bookmark. They cannot automatically leap over unrelated pages to continue gathering a single bookmark's scattered content.
Can I natively split a PDF by nonconsecutive top-level bookmarks in Adobe Acrobat?
No, Adobe Acrobat's native 'Split by Bookmark' feature only supports continuous page ranges. To split scattered pages automatically based on bookmark hierarchy, you must utilize a custom Action Wizard JavaScript or a third-party PDF plugin.
Is it possible to combine extracted nonconsecutive pages into one PDF manually?
Yes. You can manually extract specific customized page ranges (such as pages 1-5 and 10-15) using your PDF editor's page extraction tool, and then utilize a 'Merge PDF' or 'Combine Files' feature to stitch them back together into a single, cohesive document.




