Blank page removal tool for PDF? A command line tool is preferred, but not required.

Preview and PDF Pen and dozens of other apps can delete arbitrary pages from a PDF file and save the result. The key problem I can’t solve is how to systematically detect a blank page and have it deleted. Blank is defined as no visible line or text or content.

Do you know of any tool that can detect and remove blank pages from a multi-page PDF file and be controlled by automation (script / Automator / something other than click, look, click)?
Here are a few tools I found on the web. I haven't used them, so I can't comment on how well they might work for you.

A-PDF Scan Optimizer has an option for detecting and removing pages with not many visible marks.

the CoolUtils TIFF PDF Cleaner "detects blank pages in TIFF and PDF files and deletes them". 

Edocfile's Blank Page Remover has the effect of deleting blank pages from a PDF file, though it's intended for use with a scanner and a printer as a way of converting a document with mixed single- and double-sided sheets into a document with all single- or double-sided sheets. 

Axpertsoft's PDF Page Remover can remove blank pages from multiple PDF files at a single command.

All these requires Windows of some flavour, so I hope you have a virtual machine on your Mac.