support PDF files ending with `\r%%EOF` as well as those ending with `\n%%EOF`
Created by: harrati
DSS library especially this function PDFDocumentValidator.getOriginalDocuments()
Expects the final Bytes to be \n%%EOF
but when the original document ends with \r%%EOF
we get an error.
Here I added this code '|| b == 0x0d' in order to fix the above error.
in attachments you'll find two example files: test 35.pdf test 36.pdf