Other PDF Issues

How to Split PDF Pages into Separate Files by Page Size

Jason MillerJason Miller Nov 2, 2026 869 views

Question details

The user needs to separate a single PDF containing mixed page dimensions (e.g., letter and legal sizes) into multiple files grouped by their specific page size.

How to Split PDF Pages into Separate Files by Page Size
Product
Adobe Acrobat XI / PDF
Device & OS
not provided
Scenario
Organizing or printing a PDF document that contains various different page dimensions mixed together.
Observed behavior
Standard PDF editors, including Adobe Acrobat, lack a built-in command to automatically extract or split pages based solely on their dimensions.
Before you start

Before attempting to split your PDF, identify the specific page dimensions within your document and ensure you have access to advanced PDF editing software that supports scripting or manual page extraction.

Solution 1Recommended

Use Custom JavaScript to Extract Pages by Size

Since Acrobat lacks a built-in feature for this, you can use a custom JavaScript script to inspect page dimensions and extract them into separate files automatically.

Adobe Acrobat does not offer a native button to split pages by size. However, its JavaScript API allows you to loop through a document, check the media box dimensions of each page, and extract them accordingly.

You will need a basic understanding of PDF page coordinates (such as MediaBox or CropBox values) to configure the script properly.

1
Open your PDF

Launch Adobe Acrobat XI and open the PDF document containing the mixed page sizes.

2
Access the JavaScript Console

Navigate to 'Tools' > 'JavaScript' and select 'Document JavaScripts' or open the JavaScript Debugger console.

3
Write the extraction script

Create a custom script that loops through the document using 'this.numPages'. For each page, retrieve its dimensions using 'this.getPageBox("MediaBox", i)'.

4
Execute the extraction

Use the 'this.extractPages()' method within your script logic to save the pages matching specific dimensions to a designated local directory.

Use Custom JavaScript to Extract Pages by Size
Scripting Knowledge Required: Creating this script requires knowledge of Acrobat's JavaScript API and PDF page coordinate systems. There is currently no free, out-of-the-box script available without custom coding.
Easy PDF Extraction and Editing

Extract and Split PDF Pages Easily with WPS Office

While automatic splitting by page size requires complex scripting, WPS Office provides an intuitive, visual interface to easily select, group, and extract PDF pages into new files without writing any code.

  1. 1. Open your PDF: Launch WPS Office and open your mixed-size PDF document.
  2. 2. Navigate to the Page tab: Click on the 'Page' tab on the top ribbon toolbar to enter the page management view, displaying all document thumbnails clearly.
  3. 3. Select pages by size: Hold the 'Ctrl' key and click on the thumbnails of the pages that share the same dimensions.
  4. 4. Extract as a new file: Click the 'Extract' button from the top menu, select 'Extract as one file', and choose your save destination.
Visually select and extract specific PDF pages with a single clickFully compatible with standard PDF formats and Adobe Acrobat filesLightweight application with robust page management and editing toolsFree alternative for basic PDF viewing, splitting, and merging
microsoft office alternative - wps office

Frequently Asked Questions

Is there a free tool that automatically splits PDFs by page size?

Currently, there is no standard free tool with a built-in one-click button for this specific task. Most users rely on writing custom JavaScript in advanced editors like Adobe Acrobat.

How can I find out the exact dimensions of a page in my PDF?

In most PDF readers, you can hover your mouse cursor over the lower-left corner of the document window, or go to 'File' > 'Properties' > 'Description' to see the exact page size in inches or millimeters.

Can I resize all pages in my PDF to be the same size instead of splitting them?

Yes. You can use the 'Print to PDF' feature and choose a standard paper size (like Letter or A4) in the printer properties. Select 'Fit to Page' or 'Scale to Fit' to standardize all mixed pages to the new uniform size.