diff options
author | Jay Berkenbilt <ejb@ql.org> | 2020-12-31 20:06:18 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2021-01-02 17:33:36 +0100 |
commit | afb48d23a984ab1fe27a57ecbb3d56ac2e3a2099 (patch) | |
tree | 10934a2b6869891a224d0cd23e6f324035070eec | |
parent | 6154221edbb0e17e77da7defeeac5fe53121ef57 (diff) | |
download | qpdf-afb48d23a984ab1fe27a57ecbb3d56ac2e3a2099.tar.zst |
QPDFPageObjectHelper::removeUnreferencedResources works with form XObjects
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | include/qpdf/QPDFPageObjectHelper.hh | 3 |
2 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,9 @@ 2020-12-31 Jay Berkenbilt <ejb@ql.org> + * QPDFPageObjectHelper::removeUnreferencedResources can now be + called with a QPDFPageObjectHelper created from a form XObject. + The method already recursed into form XObjects. + * Rename some QPDFPageObjectHelper methods and make them support form XObjects as well as pages. The old names will be preserved from compatibility. diff --git a/include/qpdf/QPDFPageObjectHelper.hh b/include/qpdf/QPDFPageObjectHelper.hh index d5ffe78b..b25de1fe 100644 --- a/include/qpdf/QPDFPageObjectHelper.hh +++ b/include/qpdf/QPDFPageObjectHelper.hh @@ -186,7 +186,8 @@ class QPDFPageObjectHelper: public QPDFObjectHelper // QPDFPageDocumentHelper::pushInheritedAttributesToPage(). This // method is used by page splitting code to avoid copying unused // objects in files that used shared resource dictionaries across - // multiple pages. + // multiple pages. This method recurses into form XObjects and can + // be called with a form XObject as well as a page. QPDF_DLL void removeUnreferencedResources(); |