This example shows how to add tagged content to a document which
is already tagged.
using var doc = new Doc();
doc.Read("../Rez/spacex_nasa_dragon.pdf");
doc.Font = doc.EmbedFont("Arial", LanguageType.Unicode, false, true, false);
doc.TextStyle.Size = 18;
doc.Rect.SetRect(0, 0, doc.MediaBox.Width, 100);
doc.TextStyle.HPos = 0.5;
doc.TextStyle.Bold = true;
doc.Color.SetRgb(200, 00, 0);
doc.Tag.Open("P", "Span");
doc.AddText("This is a NASA document\r\n");
doc.Tag.CloseOpen("Span");
doc.AddText("National Aeronautics and Space Administration");
doc.Tag.Close("Span", "P");
doc.Save("addtagstotaggeddoc.pdf");