Call the Save method. Specify the output document path or stream.
The following code snippet shows how to add HighlightAnnotation to the document:
//Add highlight annotation to the document from local diskusing(Annotatorannotator=newAnnotator("input.pdf")){HighlightAnnotationhighlight=newHighlightAnnotation{BackgroundColor=65535,CreatedOn=DateTime.Now,FontColor=0,Message="This is highlight annotation",Opacity=0.5,PageNumber=0,Points=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(highlight);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.
On this page
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Cookie Notice
Language
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.