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. --- ChangeLog | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 243e4929..2670dd07 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2021-02-02 Jay Berkenbilt + + * Bug fix: 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. Fixes #494. + 2021-01-31 Jay Berkenbilt * Bug fix: properly handle strings if they appear in inline image -- cgit v1.2.3-54-g00ecf