I am trying to add text using ItextSharp Version 5.5.6.0 On one of the segments we are using PdfContentByte to write the text Assume that pdfPageContents is the instance of PdfContentByte with the content byte
pdfPageContents.SaveState();
pdfPageContents.BeginText();
pdfPageContents.SetFontAndSize(bf, fontSize);
pdfPageContents.SetColorFill(color);
pdfPageContents.ShowTextAligned(Aling, text, xy.x, xy.y, rotation);
pdfPageContents.EndText();
I have also try
ColumnText ct = new ColumnText(pdfPageContents);
ct.SetSimpleColumn(50, 500, 500, 50);
ct.SetText(new Phrase(1,new Chunk(text)));
ct.Go();
But in both cases the text gets added but is not include in the tagged structure of the document.
but my Tagged structure does not include that image First 2 items are been added in world and they have the tagged structure
There are only 4 tags 1 for the first text 2 for spaces and 1 for the image, the tagged structure is the same as before adding the "Hello Sir"
Is there any setting that i am missing or is there a work around?