diff options
author | Jay Berkenbilt <ejb@ql.org> | 2021-02-02 21:55:18 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2021-02-03 00:06:05 +0100 |
commit | faa2e3ddfd7e5bfd0922deb49b9c88e8eee08fbd (patch) | |
tree | 3135b09a275e9032b3994e9f80abc18793e245b7 /include | |
parent | 81025e499893c38b40aa824a5abc43393a8afed1 (diff) | |
download | qpdf-faa2e3ddfd7e5bfd0922deb49b9c88e8eee08fbd.tar.zst |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFPageObjectHelper.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/qpdf/QPDFPageObjectHelper.hh b/include/qpdf/QPDFPageObjectHelper.hh index c948c5c2..73344caf 100644 --- a/include/qpdf/QPDFPageObjectHelper.hh +++ b/include/qpdf/QPDFPageObjectHelper.hh @@ -317,9 +317,9 @@ class QPDFPageObjectHelper: public QPDFObjectHelper void flattenRotation(); private: - static void + static bool removeUnreferencedResourcesHelper( - QPDFPageObjectHelper ph); + QPDFPageObjectHelper ph, std::set<std::string>& unresolved); class Members { |