aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFPageObjectHelper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/QPDFPageObjectHelper.cc')
-rw-r--r--libqpdf/QPDFPageObjectHelper.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/libqpdf/QPDFPageObjectHelper.cc b/libqpdf/QPDFPageObjectHelper.cc
index 4460415b..77343b6f 100644
--- a/libqpdf/QPDFPageObjectHelper.cc
+++ b/libqpdf/QPDFPageObjectHelper.cc
@@ -785,10 +785,12 @@ QPDFPageObjectHelper::removeUnreferencedResourcesHelper(
if ((! local_unresolved.empty()) && resources.isDictionary())
{
+ // Don't issue a warning for this case. There are some cases
+ // of names that aren't XObject references, for example,
+ // /Artifact in tagged PDF. Until we are certain that we know
+ // the meaning of every name in a content stream, we don't
+ // want to give warnings because they will be false positives.
QTC::TC("qpdf", "QPDFPageObjectHelper unresolved names");
- ph.oh.warnIfPossible(
- "Unresolved names found while scanning content stream; "
- "not attempting to remove unreferenced objects from this object");
return false;
}