changed to hash the binary rather than the pdf text to remove possibility of inconsistant conversion issues