Skip to main content
Participant
July 5, 2021
Pregunta

How to Split the Last Page from Multiple PDFs

  • July 5, 2021
  • 1 respuesta
  • 851 visualizaciones

Hi,

 

I have about 50 pdf files per day to export / split their only the last page.

I tried to use the menu called "Organize Pages" but it failed since each PDF files has different number of pages.

 

Is there any way to export only the 'last page' from multiple PDFs?

 

Thanks.

Este tema ha sido cerrado para respuestas.

1 respuesta

try67
Community Expert
Community Expert
July 5, 2021

This can be done with a script or the Action Wizard (if you have Acrobat Pro).

Do you just want to extract those pages as new, temporary files, or do you want to save them under a specific name after they're extracted?

Participant
July 6, 2021

Hi try67,

I want those separated into a new file and add some string in the file name.

 

Can you please give me a little more information for Action Wizard?

 

FYI, I'm using Pro version.

 

Thanks a lot!

try67
Community Expert
Community Expert
July 6, 2021

The Action Wizard (Tools - Action Wizard) can be used to process multiple files in the same way.

To do what you described you can have it execute the following JavaScript code:

 

this.extractPages({nStart: this.numPages-1, cPath: this.path.replace(/\.pdf$/i, "_lastpage.pdf")});

 

This will extract the last page of each file you run the Action on to the same folder as the original, and save it under the same name, but with the "_lastpage" suffix added to it.