jasperreports icon indicating copy to clipboard operation
jasperreports copied to clipboard

pdfa (pdfa1a) usage in JasperReports produces invalid format when a hyperlink is used

Open jwkaltz opened this issue 1 year ago • 0 comments

When setting a JasperReports JRXML file to be PDF/A-1A compliant (pdfa1a), the validation of the compliance by a tool such as VeraPDF is successful. But when the JRXML file contains a Hyperlink, the PDF which is output by JasperReports is no longer compliant. Validation fails with this rule: "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." See details at https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Part-1-rules#rule-653-2

After consulting the current options in documentation and code, I think there is currently no way to produce a fully compliant PDF/A-1A file with JasperReports which includes a hyperlink - or am I missing something?

Please see attached a minimal example which showcases this issue; in the file without a hyperlink the PDF/A-1A compliance is verified, in the file with the hyperlink, it fails: example_for_jasper_with_hyperlink.zip

jwkaltz avatar Dec 28 '23 14:12 jwkaltz