mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-29 04:28:20 -06:00
The mirror of the cos change for render::inspect: a later cross-reference stream whose /Root points at /Info replaced the earlier trailer, and Document Properties lost the catalog. A candidate whose /Root is /Type /Catalog or has /Pages now wins; another dictionary is still taken when nothing better is there (FDF). Test: inspect::tests::rebuilt_file_prefers_a_trailer_whose_root_is_the_catalog