Call the Save method. Specify the output document path or stream.
The following code snippet shows how to add DistanceAnnotation to the document:
//Add distance annotation to the document from local diskusing(Annotatorannotator=newAnnotator("input.pdf")){DistanceAnnotationdistance=newDistanceAnnotation{Box=newRectangle(200,150,200,30),CreatedOn=DateTime.Now,Message="This is distance annotation",Opacity=0.7,PageNumber=0,PenColor=65535,PenStyle=PenStyle.Dot,PenWidth=3,Replies=newList<Reply>{newReply{Comment="First comment",RepliedOn=DateTime.Now},newReply{Comment="Second comment",RepliedOn=DateTime.Now}}};annotator.Add(distance);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.