in reply to Splitting PDFs with PDF::API2

This code expects the filename as the first command line argument. For example, if the program is saved as "split.pl" in your home directory and the file to be processed is "MyDocument.pdf" on the desktop, launch perl ~/split.pl ~/Desktop/MyDocument.pdf. See shift and @ARGV for more info. The processed file will be created near the source file, with ".clean" added before the file extension (MyDocument.clean.pdf in my example).

Replies are listed 'Best First'.
Re^2: Splitting PDFs with PDF::API2
by Jawle (Initiate) on Oct 29, 2014 at 21:11 UTC
    You my friend are brilliant! Thank you for such a simple and clear answer! This is a great script and works wonders for scanned textbooks.