Adding tags to pdf document

How can I add text in pdf document page and make it as accessibility tag
public void AddText(Page page, Rectangle rectangle, string text)
{
var textFragment = new TextFragment(text);
textFragment.MakeTransparent();
textFragment.TextState.RenderingMode = TextRenderingMode.Invisible;
textFragment.TextState.FontSize = CalcualteFontSize(text, textFragment.TextState.Font, rectangle.Width, rectangle.Height);
textFragment.Position = new Position(rectangle.LLX, rectangle.LLY);
var textBuilder = new TextBuilder(page);
textBuilder.AppendText(textFragment);
}

I am using this method.
if I use the tagged content of the document it is adding new page to file and add the tag to it.
Do you have any flow to solve this or add the tag and set the tag position Rectangle or any thing??
Any idea ? Thank’s

Hi,
How can I add text in pdf document page and make it as accessibility tag
public void AddText(Page page, Rectangle rectangle, string text)
{
var textFragment = new TextFragment(text);
textFragment.MakeTransparent();
textFragment.TextState.RenderingMode = TextRenderingMode.Invisible;
textFragment.TextState.FontSize = CalcualteFontSize(text, textFragment.TextState.Font, rectangle.Width, rectangle.Height);
textFragment.Position = new Position(rectangle.LLX, rectangle.LLY);
var textBuilder = new TextBuilder(page);
textBuilder.AppendText(textFragment);
}

I am using this method.
if I use the tagged content of the document it is adding new page to file and add the tag to it.
Do you have any flow to solve this or add the tag and set the tag position Rectangle or any thing??
Any idea ? Thank’s


This Topic is created by Atir_Tahir using Email to Topic tool.

@Andranik

We have opened the following new ticket(s) in our internal issue tracking system.

Issue ID(s): PDFNET-56074

We will look into details of your requirement and as soon as the ticket is resolved, we will update you in this forum thread. Please be patient and spare us some time.