Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Batch Split Specific Pages in Acrobat DC?

New Here ,
Jul 16, 2020 Jul 16, 2020

Hello Everyone,

 

I'm trying to figure out how to batch split in Acrobat DC and it looks like the batch wizard can't handle that?

 

Here's the project: Accounts Receivable sent us 500 PDFs that are missing client signatures. They, unfortunately, included the internal invoice in the packets. This is on either page 1 or page 2. We can't send the internal invoice to the client. We've identified which files need page 1 removed and which page 2 removed and put them in respective folders. 

 

I would like to run a batch script that will remove page 1 (or 2 depending) and save the page, and the remaining packet, as separate files with an offshoot of the original file name. At which point we send all the treated packets off for signatures.

 

This seems like a basic ask as you can already split a file, and it's just by page number, not anything complicated. Is there a way to batch this? It would save a truck of time and make me look so savvy! 

 

Thanks!

 

TOPICS
How to
518
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 16, 2020 Jul 16, 2020

If you have Acrobat Pro you can easily do it using an Action and a simple script.

The script to delete the first page of a file is:

this.deletePages(0,0);

The script to delete the second page of a file is:

this.deletePages(1,1);

So you have the Action execute either one of these commands (make sure to un-tick the Prompt User box when creating them!) and then add a Save command, where you can select to insert a fixed suffix to the file name.

Run both Actions on your two folders, and you're done!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 16, 2020 Jul 16, 2020
LATEST

Thanks for the reply! I was trying to not get too wordy so I spared the rest of the plan... Which was to reattach the split page as the updated PDFs flowed in from the client. 

 

The best work around I can think of right now is to run 2 batches. One that deletes page 1. And then another (on the same batch backed up in another folder) that deletes everything but page 1. That way we still have the internal doc to insert back in later. Not ideal, but... what to do? 

 

Thanks for the handy script! 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines