veraPDF / veraPDF-library

Industry supported, open source PDF/A validation library
http://verapdf.org/software
GNU General Public License v3.0
276 stars 47 forks source link

File with XRef stream claimed to be a valid PDF/A-1b #1375

Closed THausherr closed 5 months ago

THausherr commented 1 year ago

The attached file is claimed to be a valid PDF/A-1b in VeraPDF greenfield 1.25.53, just downloaded. soknadskvittering.pdf From my understanding, this is a PDF 1.5 feature and PDF/A-1b is only allowed to have PDF 1.4 features.

And here's the report that another guy got with Adobe for this file: grafik

bdoubrov commented 1 year ago

During PDF/A-1 validation we parse a document according to PDF 1.4 specification and thus do not recognize compressed object streams as an error. This is why the document is reported to be conforming to PDF/A-1b.

But I do agree this is not fully correct, as for example, just retrieving PDF/A XMP metadata and identifying the PDF/A conformance would already require full support of xref streams. In addition, this is indeed a very valuable information to the user. So, we'll add this extra check in PDF/A-1 validation to the next release and will be in sync with Adobe (and others) on this issue.

bdoubrov commented 11 months ago

The latest dev version of veraPDF includes the error on the presence of xref stream in the PDF/A-1 documents.

MaximPlusov commented 5 months ago

Included into release 1.26