How to Split PDF Pages into Separate Files by Page Size
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.

- 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 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.
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.
Launch Adobe Acrobat XI and open the PDF document containing the mixed page sizes.
Navigate to 'Tools' > 'JavaScript' and select 'Document JavaScripts' or open the JavaScript Debugger console.
Create a custom script that loops through the document using 'this.numPages'. For each page, retrieve its dimensions using 'this.getPageBox("MediaBox", i)'.
Use the 'this.extractPages()' method within your script logic to save the pages matching specific dimensions to a designated local directory.

Manually Extract Pages Based on Size
If you are unfamiliar with scripting or coding, you can visually identify page sizes and extract them manually using built-in page management tools.
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. Open your PDF: Launch WPS Office and open your mixed-size PDF document.
- 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. Select pages by size: Hold the 'Ctrl' key and click on the thumbnails of the pages that share the same dimensions.
- 4. Extract as a new file: Click the 'Extract' button from the top menu, select 'Extract as one file', and choose your save destination.

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.




