Click OK and save and rename the new action. Add the files you want to process and then click start.
A new file will be created for each source file, with the blank pages removed and '_Original' added to the end of the file name.
// DELETE PDF PAGES WITHOUT TEXT
// IMPORTANT: This script assumes that page is blank if it does not contain any "pdf words"
// OUTPUT: An output PDF file is created by appending _Original.pdf to the filename
var newName = this.path;
var filename = newName.replace(".pdf","_Original.pdf");
for (var i = 0; i < this.numPages; i++)
numWords = this.getPageNumWords(i);
if (numWords == 0)
// this page has no text, delete it