How to Fix an Incorrectly Tagged PDF: Common Errors

Hands holding a tablet displaying a PDF document tag structure, next to papers labeled “Accessibility,” illustrating accessible PDF tagging.
Paul Rayius, VP of Customer Support & Training, PDFix-US

Paul Rayius
VP of Customer Support & Training

Connect with Us on LinkedIn
Connect via email

In this article, we’ll address resolving validation errors like:


Many, if not all, of these issues can be resolved simply by auto-tagging the document. If your document is already pretty well tagged, and you don’t want to retag it, keep reading for how you can resolve these tagging-related validation issues.

Some of the solutions, below, involve moving containers in the Content panel. When moving containers, in the Content panel, make sure the physical appearance of the document is not affected!

Also shown as: “StructTreeRoot entry is not present in the document catalog” (veraPDF) or “Document has no tags” (CommonLook)

The simple solution for this issue is to tag the document. You could tag it manually or a better approach is probably to use one of the various auto-tagging methods available! Refer to the other resources, at the end of this article, to learn more about auto-tagging in PDFix.

Also shown as: “Content marked as Artifact is present inside tagged content” (veraPDF), “Content marked as Artifact is inside tagged content” (Adobe Acrobat) or “Artifact present inside tagged content” (PAC)

You’ll get this when you have an Artifact container inside a “Tag” container. As shown in the screenshot below, there is an H1 container in the content panel which has an Artifact container inside it.

Screenshot showing an artifact container inside an H1 container.

Ⓐ Manually fixing Artifact content inside tagged content

In the document view, assuming that the content should be artifacted (and not tagged), simply drag the Artifact container out of the “Tag” container.

Note: When you do this, make sure the physical appearance of the document has not changed! Of course, if the content should be tagged, as opposed to artifacted, then tag it correctly.

Ⓑ Automatically fixing Artifact content inside tagged content

Run the Fix Content Marks action.

If the content should remain as an artifact, in the dialog box, next to Cleanup, choose Remove Invalid MCID. Next to Fix conflicted MCIDs, choose Mark as artifact.

Screenshot of the Fix Content Marks dialog box with Remove Invalid MCID and Mark as artifact set

If the content should be tagged, in the dialog box, next to Cleanup, choose Remove Artifact. And, next to Fix conflicted MCIDs, choose Keep as tagged content.

Pro Tip: Select the Artifact containers that should actually be tagged and then “Run action on selection.” Otherwise, you’ll end up moving all of your artifacts out of their Artifact containers!

Screenshot of the Fix Content Marks dialog box with Remove Artifact and Keep as tagged content set.

Also shown as: “Tagged content present inside content marked as Artifact” (Adobe Acrobat) or “Tagged Content present inside an artifact” (PAC)

You’ll get this error when something has been marked as an Artifact but, inside that Artifact container, there is another container that looks like a “tagged” container (P, H1, L, etc., for example).

Screenshot showing a Span container inside an Artifact container in the Content panel.

Ⓐ Manually fixing tagged content in Artifacts

In the Content panel, move the “Tag” container out of the Artifact container or simply retag the content correctly.

Ⓑ Automatically fixing tagged content in Artifacts

Run the Fix Content Marks action.

In the dialog box, next to Cleanup, choose Remove Artifact. And, next to Fix conflicted MCIDs, choose Keep as tagged content.

Pro Tip: Select the Artifact containers that should actually be tagged and then “Run action on selection.” Otherwise, you’ll end up moving all of your artifacts out of their Artifact containers!

Screenshot of the Fix Content Marks dialog box with Remove Artifact and Keep as tagged content set.

Also shown as: “Content is neither marked as Artifact nor tagged as real content” (veraPDF), “Content neither Artifact nor tagged content” (Adobe Acrobat), or “Text object not tagged” and “Image object not tagged” (PAC, for content that is not in any container)

There are a couple of different scenarios that might result in this error message.

The screenshot below shows the Content panel in PDFix Desktop. On page 1, there are a couple of Form XObjects that are not in Artifact or “Tag” containers (P, H1, etc., for example). On page 2, there is a Path that is not in an Artifact or a “Tag” container.

Screenshot of the PDFix Desktop Content panel showing Form XObjects on page 1 and a Path on page 2 that are not in any container.

Run the action “Artifact Content” (under the Content actions). In the dialog box, set Objects to Untagged Content and, in Mark as, choose Artifact. This will put the content that is not in a container into Artifact containers.

Important Note: If you determine that the content does need to be tagged, tag it!

Screenshot showing the Artifact Content action dialog box with the options selected as previously described

If you run the action to try to resolve this error, following the guidance in “Scenario 1,” and you still get the error, this (“Scenario 2”) is likely the problem.

What’s happening?

In short, you have something in a “Tag” container, and that container has an MCID, but the content in the container is not actually tagged (it doesn’t show up in the Tags tree).

So, how do you verify that this is really the issue?

  • In PDFix Desktop, select the error in the validation panel.
  • When selecting it takes you to the Content panel, check to see if the container is some sort of “tagged” container (not an Artifact).
  • Select the container and check the Properties. Specifically, look to see if there is an MCID. (The MCID is what “connects” content between the Content panel and the Tags. So, if a container has an MCID, the stuff in that container should appear in the Tags tree.)
  • Right-click on the container and, in the context menu, choose “Find tag from Selection.”

If you find a “Tag” container, with an MCID, and you get the message telling you there’s no tag available for the content, THIS is your issue!

Screenshot displaying a container with the content type 'P', and MCID for the content, and the dialog box indicating that there is no tag for the content.

Making an assumption: The content in question is not in the Tags tree because it really should be untagged and in an Artifact container. If this assumption is wrong, and the content should be tagged, tag it properly!

With the above assumption, resolving this issue could be a two-action process. OR, you could create a custom action (as I have) to automatically do both steps so, in that case, you’re only running one action!

Here are the steps, broken down (but shown in my custom action):

① FIX CONTENT MARKS

Next to Cleanup, choose Remove Invalid MCID (this removes MCIDs from stuff that’s not in the Tags tree).

Screenshot showing the Fix Content Marks settings for the custom action]

② ARTIFACT UNTAGGED CONTENT

Next to Objects, choose Untagged content and next to Mark as, choose Artifact.

Screenshot showing the Artifact Content settings for the custom action]

Note: In the screenshot of my custom action, I also added Fix Parent Tree, just for “good measure.” If you’re creating a custom action, you might want to do that, too. 

Also shown as: “MarkInfo dictionary is not present in the document catalog, or Marked entry is set to false or is not present in the MarkInfo dictionary” (veraPDF)

What!? That sounds super technical. Let me translate that for you.

In the document’s Properties (also known as the metadata), there is a “flag” that is used to indicate whether or not the PDF has tags. If the flag is set to “True,” it means that the document has tags. If the flag is set to “False,” it means the document is not tagged – OR, at least, in the metadata, it “looks” like it’s not tagged. At the very minimum, a PDF has to have tags to even have the potential for it to be standard-conformant so, if the document is untagged, or if this flag is set to false, it fails.

It is VERY important to note that this flag is simply stating whether or not the PDF has tags. It’s NOT verifying that any of the tagging is actually correct!

Ⓐ First Solution for fixing the MarkInfo error

If the PDF is untagged, tag it!

Ⓑ Second Solution for fixing the MarkInfo error

If the PDF is tagged, and you still get this error, it’s simply a matter of setting that flag in the metadata.  To mark the PDF as being tagged, run the Set Suspect Value in the Metadata actions.  This will set the flag to “True.”

Refer to these other articles and resources for more information on tagging PDFs and resolving validation errors: