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)
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.
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,
freeTextAnnotation.Contents = “text in the box”;
freeTextAnnotation.Color = Aspose.Pdf.Color.Red;
freeTextAnnotation.Border.Width = 12;
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.
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.