FreeTextAnnotation Border width overlapping text inside

Hi. When creating annotation (by using FreeTextAnnotation) with thick Border width, then text in the inside overlapped by border. When try change annotation in Acrobat Viewer, text is offset (how it must be). What need to do, to make the non-overlapped text.1.png (4.7 KB)

@tvv91

Thanks for your inquiry.

Would you please share sample code snippet along with sample output PDF document. We will test the scenario in our environment and address it accordingly.

[TestCase(@“C:\input.pdf”, @“C:\result.pdf”)]
public void BorderTest(string inputPath, string resultPath)
{
Pdf.Document doc = new Pdf.Document(inputPath);
Aspose.Pdf.Rectangle rect = new Rectangle(0, 0, 100, 100);
DefaultAppearance appearance = new DefaultAppearance(Pdf.Text.FontRepository.FindFont(“Arial”), 14, Color.Black);
FreeTextAnnotation freeTextAnnotation = new FreeTextAnnotation(doc.Pages[1],
rect, appearance);
freeTextAnnotation.Contents = “text in the box”;
freeTextAnnotation.Color = Aspose.Pdf.Color.Red;
freeTextAnnotation.Border.Width = 12;
doc.Pages[1].Annotations.Add(freeTextAnnotation);
doc.Save(resultPath);
}
input.pdf (171.1 KB)
result.pdf (197.9 KB)
When we try change annotation position in result file, text appearance become normal, without overlapping.

@tvv91

Thanks for sharing requested information.

We were able to reproduce the mentioned issue in our environment and logged it as PDFNET-45085 in our issue tracking system. We will further investigate this behavior of the API and keep you posted with the status of its rectification. Please be patient and spare us little time.

We are sorry for the inconvenience.