Put all the test & check Pdf methods to Weight watchers and created a method that bundles all this stuff "testPdfOk", which tests for:

Pdf Header "%PDF"
broken Pdf
Pdf Size (currently not more than 16 MB)
Encryption