We have requirement to find if there is any blank/empty pages in a PDF files. Actually there are 4 million PDF files which needs to be validated for above condition and also there will be 10k-12k pages in a PDF. Hence need a script to automate this work.
Dan's code provides a solution based on size being the criterion for a blank/empty page, while Joe's post discusses important issues regarding the very definition of a blank/empty page. Most of the credit to Dan, some to Joe.