PDF Editing Issues

Delete the Last 10 Pages from Multiple PDFs in Adobe Acrobat

Natalie TaylorNatalie Taylor Nov 19, 2026 868 views

Question details

Remove the last 10 pages from multiple PDF files with different page counts.

Delete the Last 10 Pages from Multiple PDFs in Adobe Acrobat
Product
Adobe Acrobat Pro Action Wizard
Device & OS
not provided
Scenario
The user wants to process several PDFs without specifying a different page range for each file.
Observed behavior
Each PDF with more than 10 pages should lose its final 10 pages, regardless of its total page count.
Before you start

Check that your Acrobat edition includes Action Wizard and that the PDFs allow page deletion. Choose an output location for the processed files and test the action on a sample PDF first.

Solution 1Recommended

Use Acrobat Action Wizard to Delete the Last 10 Pages

Run a JavaScript action across selected PDFs, then save each processed file.

The script calculates the final 10 pages separately for each document. Files with 10 or fewer pages are left unchanged.

1
Create an action

In Adobe Acrobat Pro, open Tools > Action Wizard, or find Use Guided Actions under All tools in newer versions. Select New Action.

2
Add the JavaScript step

Under More Tools, add Execute JavaScript to the action. Open its settings and enter: if (this.numPages > 10) { this.deletePages({nStart: this.numPages - 10, nEnd: this.numPages - 1}); }

3
Add a save step

Add Save after Execute JavaScript in the action. Configure the save options and output location so the modified PDFs are written to disk.

4
Run the action

Save the action, select it in Action Wizard, add the PDF files you want to process, and click Start. Open a processed file to verify its page count.

Use Acrobat Action Wizard to Delete the Last 10 Pages
Files with 10 or fewer pages: The script does not delete pages from these files. The Save step may still save them, depending on the action's settings.
Edit PDF pages with WPS Office

Remove the Last 10 Pages from PDFs in WPS Office

Use WPS PDF page management to remove the final 10 pages from each file. This is a manual alternative: open and edit each PDF separately rather than running an Acrobat batch action.

  1. 1. Open a PDF: Launch WPS Office and open the first PDF. Check the total page count in the document viewer.
  2. 2. Identify the final 10 pages: Calculate the starting page by subtracting 9 from the total. For example, in a 25-page PDF, the range is pages 16–25.
  3. 3. Delete the page range: Open the Page or Organize Pages tools, choose Delete Pages, and enter the final 10-page range. Confirm the deletion; menu names may vary by version.
  4. 4. Save and repeat: Choose File > Save As to save the edited PDF, then open the next file and repeat the process. Page deletion availability may depend on your WPS version or plan.
Delete a selected range of PDF pages without writing JavaScriptReview each document's page count before removing its final pagesOpen and edit Microsoft Office formats including DOCX, XLSX, and PPTXWork with PDFs and Office documents in one familiar interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does the Acrobat script work with different page counts?

It uses this.numPages to calculate the final 10 pages for each PDF separately. Acrobat's JavaScript page indexes start at zero, so the last page is this.numPages - 1.

What happens if a PDF has exactly 10 pages?

The condition this.numPages > 10 prevents any pages from being deleted. The same applies to shorter PDFs.

Why are my PDFs unchanged after the action runs?

Make sure the action includes Save after Execute JavaScript and that its output location is configured. Also check that the PDF has more than 10 pages and permits page deletion.

Can WPS Office remove the last 10 pages from several PDFs automatically?

The WPS method described here edits one PDF at a time. Open each file, check its page count, and use the Page or Organize Pages tools to delete the final range.