How to detect if a PDF has a watermark?

Does anyone know of a way (API, CLI, or other?) to detect if an SDL CMS-produced PDF contains a watermark?