-
Notifications
You must be signed in to change notification settings - Fork 3
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
PDF not compatible with PDF/A-1a #123
Comments
The blue message does not mean that the PDF is really compatible with PDF/A-1a, but only that it claims compatibility. Acrobat Reader does not check whether the PDF is compatible with PDF/A-1a or not. To do this you have to use some other tool like VeraPDF. I also misunderstood this for a long time. The Confederation at the time of their acceptance tests probably did that too ;-) |
OK, good to know. Thank you for your feedback. Maybe the blue message is enough for the Confederation ;-) |
ok, I was not aware of that either. I guess we have the same issues as we use the same versions. |
While experimenting around, I noticed the following: if I comment out the federal logo, then the validation error with the ICC profile is no longer present. I.e. the way the federal logo is embedded is not PDF/A-1A compliant. All other images (logos canton, municipality, PLR, maps, legend images...) are embedded correctly. However, I have no idea why this is so. |
@peterschaer @jwkaltz I also conducted some tests replacing the hyperlinks by simple text fields and the remaining validation issues vanish. Looking at jasper community pages it should be possible to create compliant pdf's: |
@voisardf check with different pdf validation tools, if the error still appears |
Summary of findings so far:
|
Here is a proposal to extend the standard MapFish Print example test to include a hyperlink: mapfish/mapfish-print#3139 Note that with this extended example, the PDF output by MapFish Print has the same VeraPDF validation problem as the Oereb PDFs: The validation output by VeraPDF is the same as reported above by @peterschaer, the rule https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Part-1-rules#rule-653-2 does not pass. |
The issue can be reproduced with a stripped down example in JasperReports, I have opened an issue about that: |
Update on this issue: it has been fixed; with the next release of MapFish-Print, this validation error should disappear. |
@jwkaltz great, thanks! could you indicate the version tag? |
Another example from TI And the relative report |
It seems that the PDFs created by pyramid_oereb_mfp are not compatible with PDF/A-1A. Other pyramid_oereb_mfp cantons also seem to be affected - as can be seen here and here.
When I validate some of our PDFs with VeraPDF, I get the following two errors with our PDFs:
I have attached the PDF and the validation report. In our case, two errors are found:
20230203123527_extract.pdf
Validation Report.pdf
I was able to narrow down the annotation error to the hyperlinks. In the other error, the ICC profile seems to be incompatible. Since I have too little knowledge of mapfish_print and Jasper Reports, I can't get any further here.
We use the following versions:
We have activated PDFA/1a in
What about the other cantons that use pyramid_oereb_mfp? Do you also have these errors? Do we want to investigate these errors?
The text was updated successfully, but these errors were encountered: