Open petervwyatt opened 2 years ago
Thanks @tballison for the question that prompted this!
Having trouble working out how to do this with all PDF SDKs...
Can be identified by the presence of XRefStm key as per Table 19 (and Note below Table 15).
Fix for Issue #39 means that pdfium will now report:
...
1: Trailer (as XRefStream)
Info: unknown key 'XRefStm' is not defined in Arlington for XRefStream in PDF 1.7
PDFix does not report anything currently.
Example hybrid PDF: https://www.ema.europa.eu/documents/product-information/rapamune-epar-product-information_en.pdf (has other issues also, just to add to the fun 😁)
TestGrammar (C++ PoC) currently only reports on traditional style xref tables or cross-reference streams. Should expand to also identify hybrid reference PDFs, even though they are relatively rare:
7.5.8.4 Compatibility with applications that do not support compressed reference streams