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

Adding F flag to make links pdf/a-1a conform #280

Merged

Conversation

haramon
Copy link
Contributor

@haramon haramon commented Mar 6, 2024

Flying Saucer is not generating links from a tags that are PDF/A-1A conform:

<a href="https://www.google.at/">My link</a>

The veraPDF validation`of Rule 6.5.3-2 fails with following error:

An annotation dictionary shall contain the F key. The F key's Print flag bit shall be set to 1 and its Hidden, Invisible and NoView flag bits shall be set to 0.

This fix adds the F key to the annotation of generated links, so the pdf passes the PDF/A-1A conformity check.


If the fix is acceptable, it would be nice to have a release soon. If version 9.6.0 cannot be released yet, it is also ok cherry-picking this commit to 9.5.2 and release from there.

Thanks for your time :)

@asolntsev asolntsev added this to the 9.6.0 milestone Mar 6, 2024
Copy link
Contributor

@asolntsev asolntsev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea what it means, but seems reasonable. :)

@asolntsev asolntsev merged commit 78ea68b into flyingsaucerproject:main Mar 7, 2024
2 checks passed
@asolntsev asolntsev self-assigned this Mar 7, 2024
@asolntsev
Copy link
Contributor

@haramon Released FlyingSaucer 9.6.0. Thank you for the contribution!

P.S. Probably we should add VeraPDF to test dependencies, and validate all generated PDFs?

@haramon
Copy link
Contributor Author

haramon commented Mar 7, 2024

Thanks, for the fast review and release 👍

Yeah, it would be convenient to cover the veraPDF validation with tests.

@haramon haramon deleted the make-links-pdf-a-1a-conform branch March 7, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants