Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CR %%EOF not recoginzed as valid EOF #1490

Open
MargaritaSteiner opened this issue Dec 5, 2024 · 3 comments
Open

CR %%EOF not recoginzed as valid EOF #1490

MargaritaSteiner opened this issue Dec 5, 2024 · 3 comments
Assignees
Milestone

Comments

@MargaritaSteiner
Copy link

Hi,

we are having problems validating pdfa documents containing multiple signatures.
The documents we are creating have a CR in front of the %%EOF marker but verapdf expects a LF in front of the %%EOF marker.

This is checked in the method private boolean isEOFFound(byte[] buffer) in class SignatureParser.java

As a result all documents with multiple signatures containing CR%%EOF are validated as invalid from verapdf with the following error:
image

Would it be possible to extend this check to allow CR as well as LF in front of %%EOF?

Best regards
Margarita
SignedTwice.pdf

@bdoubrov
Copy link
Contributor

bdoubrov commented Dec 6, 2024

Looks like this is indeed an issue that shows up in the documents with more than one signature and a single CR used as EOL marker. We'll fix it now in the dev version and include it in the next veraPDF release.

@MaximPlusov MaximPlusov self-assigned this Dec 6, 2024
@MaximPlusov MaximPlusov added this to the 1.28 milestone Dec 6, 2024
@MaximPlusov
Copy link
Contributor

Fixed in the latest dev build 1.27.97

@MargaritaSteiner
Copy link
Author

Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants