Skip to content

only call parse_catalog if /Root entry is present and of expected type

Sven M. Hallberg requested to merge issue42 into master

Fixes #42 (closed).

NB: The code in parse_xrefs() assumed the presence of a /Root entry in the trailer dictionary. Such code arguably does not belong in that function, whose purpose is to obtain the xref data, not to process the document. But where ever it belongs, the assumption is incorrect, so this fixes the immediate issue in place.

Merge request reports