Code development platform for open source projects from the European Union institutions

Skip to content

support PDF files ending with `\r%%EOF` as well as those ending with `\n%%EOF`

Pierrick VANDENBROUCKE requested to merge github/fork/harrati/master into master

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

Merge request reports