From faa2e3ddfd7e5bfd0922deb49b9c88e8eee08fbd Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Tue, 2 Feb 2021 15:55:18 -0500 Subject: Handle older PDFs whose form XObjects inherit resources (fixes #494) When removing unreferenced resources, notice if a page (recursively) contains a form XObject with unreferenced resources, and count any such resources as referenced by the page. --- manual/qpdf-manual.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'manual/qpdf-manual.xml') diff --git a/manual/qpdf-manual.xml b/manual/qpdf-manual.xml index 66819d99..fda9c1fd 100644 --- a/manual/qpdf-manual.xml +++ b/manual/qpdf-manual.xml @@ -4887,6 +4887,16 @@ print "\n"; Bug Fixes + + + If a form XObject lacks a resources dictionary, consider any + names in that form XObject to be referenced from the + containing page. This is compliant with older PDF versions. + Also detect if any form XObjects have any unresolved names + and, if so, don't remove unreferenced resources from them or + from the page that contains them. + + Properly handle strings if they appear in inline image -- cgit v1.2.3-54-g00ecf