From 9e00be7ffa0c185a227e71879e37f7c6cee0485b Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Tue, 23 Feb 2021 08:26:05 -0500 Subject: Remove warning that gives false positives in some normal cases --- libqpdf/QPDFPageObjectHelper.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libqpdf') 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; } -- cgit v1.2.3-54-g00ecf