Files
serenity/Tests/LibPDF/TestPDF.cpp
Nico Weber cfff04c9c7 Tests/LibPDF: Add a file where object 0 is not in xref table
This uses a non-stream xref table, and the spec says
"The cross-reference table (comprising the original cross-reference
section and all update sections) must contain one entry for each object
number from 0 to the maximum object number used in the file". So this
file isn't spec compliant. However, with xref streams this does
happen in practice (the spec isn't quite clear on if it's valid there),
and it's much easier to write a test file with a non-stream xref table
by hand. Also, this file shows up fine in other PDF viewers.

This is a regression test for #25079.
2024-10-18 21:54:38 -04:00

15 KiB