These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Deleting pages macro

WWW1972
Registered: Feb 3 2011
Posts: 4

I have a folder of several hundred .pdf files each of which I want to delete the first page from. Is there a way I can instruct Acrobat to delete page 1 from every file in the folder, and then resave each file under the same name it already had?

My Product Information:
Acrobat Pro Extended 10.0, Windows
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
Look at the 'Actions' or what used to be "Batch Proccessing". You will have to write a line of JavaScript code.

George Kaiser

WWW1972
Registered: Feb 3 2011
Posts: 4
Darn, I was hoping it would be simpler than that. Can't say I'm familiar with writing JavaScript.
UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
Here are the steps to follow:


File > Action Wizard > Create New ActionStart With = "Ask when Action is Started" (so you can select a folder)

On the menu on the left, open "More tools" and click "Execute JavaScript" to add that step to the Action
Click the icon under "Options"

In the box which opens, delete the text and type in the single case-sensitive line:


deletePages();


then press OK.

Keep "Save to" = "Ask..", and save the Action, giving it a suitable name. You can now run it and pick your files.

WWW1972
Registered: Feb 3 2011
Posts: 4
Thanks a lot. I'll give that a try.
WWW1972
Registered: Feb 3 2011
Posts: 4
Sorry for taking so long to get back as I only just now got around to trying it. Thank you!!! That worked perfectly. It ran through all of the nearly 500 files in just a minute or two. :)