aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-02-02 21:55:18 +0100
committerJay Berkenbilt <ejb@ql.org>2021-02-03 00:06:05 +0100
commitfaa2e3ddfd7e5bfd0922deb49b9c88e8eee08fbd (patch)
tree3135b09a275e9032b3994e9f80abc18793e245b7 /include
parent81025e499893c38b40aa824a5abc43393a8afed1 (diff)
downloadqpdf-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.hh4
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
{