We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Border color changed when annotation moves

Hi. I’m creating FreeTextAnnotation, and set some border color with this code:
public void Test()
Pdf.Document doc = new Pdf.Document(@“C:\input.pdf”);
Aspose.Pdf.Rectangle rect = new Rectangle(100, 600, 200, 700);
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.White;
freeTextAnnotation.Characteristics.Border = Color.Red;
Then, when output.pdf open in Adobe Viewer, we can see this:1.png (2.0 KB)
So, all it’s good.
But when we moving or change annotation size, border color turns black.2.png (2.1 KB)
Also interesting that when we set some font color, for example, green:3.png (1.4 KB)
And try move / change size, then border color becomes same like font color: 4.png (1.4 KB)


Thank you for contacting support.

We have been able to reproduce the issue in our environment. A ticket with ID PDFNET-45250 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.