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

Free Support Forum - aspose.com

LineAnnotation line thickness

I am using the Aspose.Pdf.InteractiveFeatures.Annotations.LineAnnotation class and I need to set the thickness of the line. I do not see a property or any way to set the thickness of the line.

var AsposeLineAnn = new Aspose.Pdf.InteractiveFeatures.Annotations.LineAnnotation(pdfDocument.Pages[1], new Aspose.Pdf.Rectangle(LLX, LLY, URX, URY), start, end);

AsposeLineAnn.Color = Aspose.Pdf.Color.Green;

AsposeLineAnn.???= [Line thickness];

This seems to do the trick.

AsposeLineAnn.Border = new Aspose.Pdf.InteractiveFeatures.Annotations.Border(AsposeLineAnn){ Width = 3 };


Thanks for contacting support.

Yes you are correct. Using the Border property, you can specify the border as well as line thickness for Annotation objects. In the event of any further query, please feel free to contact.