From e17585c2d2df9fea296364c0768c2ce5adbc4b91 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Mon, 1 Mar 2021 16:43:35 -0500 Subject: Remove unreferenced: ignore names that are not Fonts or XObjects Converted ResourceFinder to ParserCallbacks so we can better detect the name that precedes various operators and use the operators to sort the names into resource types. This enables us to be smarter about detecting unreferenced resources in pages and also sets the stage for reconciling differences in /DR across documents. --- ChangeLog | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 036c2bca..d9b09752 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2021-03-01 Jay Berkenbilt + * Improve code that finds unreferenced resources to ignore names + in the content stream that are not fonts or XObjects. This should + reduce the number of cases when qpdf needlessly decides not to + remove unreferenced resources. Hopefully it doesn't create any new + bugs where it removes unreferenced resources that it isn't + supposed to. + * QPDFObjectHandle::ParserCallbacks: add virtual handleWarning method, and provide default (empty) implementation of it and handleEOF(). -- cgit v1.2.3-54-g00ecf