in reply to Anyone have an example that checks the integrity of a pdf file?
It's not clear (to me) what you primary objective is.