diff options
author | Jay Berkenbilt <ejb@ql.org> | 2021-03-01 22:43:35 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2021-03-03 23:05:49 +0100 |
commit | e17585c2d2df9fea296364c0768c2ce5adbc4b91 (patch) | |
tree | 356a5b3c7096175ed1ed08d1535a1e4d50f0484d /ChangeLog | |
parent | a15ec6967dd3312223a6ab7d4198655234e1a4bf (diff) | |
download | qpdf-e17585c2d2df9fea296364c0768c2ce5adbc4b91.tar.zst |
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,5 +1,12 @@ 2021-03-01 Jay Berkenbilt <ejb@ql.org> + * 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(). |