Making a hash of a PDF document is a pretty good idea. A modified PDF could contain a virus.