Call the Save method. Specify the output document path or stream.
The following code snippet shows how to add UnderlineAnnotation to the document:
//Add underline annotation to the document from local diskusing(Annotatorannotator=newAnnotator("input.pdf")){UnderlineAnnotationunderline=newUnderlineAnnotation{CreatedOn=DateTime.Now,FontColor=65535,BackgroundColor=16761035,Message="This is underline annotation",Opacity=0.7,PageNumber=0,UnderlineColor=1422623,//Supported only Word and PDF documentsPoints=newList<Point>{newPoint(80,730),newPoint(240,730),newPoint(80,650),newPoint(240,650)},Replies=newList<Reply>{newReply{Comment="First comment",RepliedOn=DateTime.Now},newReply{Comment="Second comment",RepliedOn=DateTime.Now}}};annotator.Add(underline);annotator.Save("result.pdf");}
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.