fixed problem with checking for pdf file header signature in pdf files that has extra bytes at the beginning of the file before the actual signature