aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFPageObjectHelper.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-02-23 14:26:05 +0100
committerJay Berkenbilt <ejb@ql.org>2021-02-23 14:26:21 +0100
commit9e00be7ffa0c185a227e71879e37f7c6cee0485b (patch)
tree9530ecad34247ac6b5d4a4b13714d44fd0a2227d /libqpdf/QPDFPageObjectHelper.cc
parent039eb4a253c7faed9a906a7f45f2c9f1f2a76002 (diff)
downloadqpdf-9e00be7ffa0c185a227e71879e37f7c6cee0485b.tar.zst
Remove warning that gives false positives in some normal cases
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;
}