Commit afb48d23a984ab1fe27a57ecbb3d56ac2e3a2099
1 parent
6154221e
QPDFPageObjectHelper::removeUnreferencedResources works with form XObjects
Showing
2 changed files
with
6 additions
and
1 deletions
ChangeLog
| 1 | 1 | 2020-12-31 Jay Berkenbilt <ejb@ql.org> |
| 2 | 2 | |
| 3 | + * QPDFPageObjectHelper::removeUnreferencedResources can now be | |
| 4 | + called with a QPDFPageObjectHelper created from a form XObject. | |
| 5 | + The method already recursed into form XObjects. | |
| 6 | + | |
| 3 | 7 | * Rename some QPDFPageObjectHelper methods and make them support |
| 4 | 8 | form XObjects as well as pages. The old names will be preserved |
| 5 | 9 | from compatibility. | ... | ... |
include/qpdf/QPDFPageObjectHelper.hh
| ... | ... | @@ -186,7 +186,8 @@ class QPDFPageObjectHelper: public QPDFObjectHelper |
| 186 | 186 | // QPDFPageDocumentHelper::pushInheritedAttributesToPage(). This |
| 187 | 187 | // method is used by page splitting code to avoid copying unused |
| 188 | 188 | // objects in files that used shared resource dictionaries across |
| 189 | - // multiple pages. | |
| 189 | + // multiple pages. This method recurses into form XObjects and can | |
| 190 | + // be called with a form XObject as well as a page. | |
| 190 | 191 | QPDF_DLL |
| 191 | 192 | void removeUnreferencedResources(); |
| 192 | 193 | ... | ... |