Call Save method with resultant document path or stream.
The following code demonstrates how to add TextFieldAnnotation to the document:
//Add text field annotation to the document from local diskusing(Annotatorannotator=newAnnotator("input.pdf")){TextFieldAnnotationtextField=newTextFieldAnnotation{BackgroundColor=65535,Box=newRectangle(100,100,100,100),CreatedOn=DateTime.Now,Text="Some text",FontColor=65535,FontSize=12,Message="This is text field annotation",Opacity=0.7,PageNumber=0,PenStyle=PenStyle.Dot,PenWidth=3,FontFamily="Arial",TextHorizontalAlignment=HorizontalAlignment.Center,Replies=newList<Reply>{newReply{Comment="First comment",RepliedOn=DateTime.Now},newReply{Comment="Second comment",RepliedOn=DateTime.Now}}};annotator.Add(textField);annotator.Save("result.pdf");}
More resources
Advanced Usage Topics
To learn more about document annotating features, please refer to the advanced usage section.
GitHub Examples
You may easily run the code above and see the feature in action in our GitHub examples:
Along with full-featured .NET library we provide simple but powerful free Apps.
You are welcome to annotate your PDF, DOC or DOCX, XLS or XLSX, PPT or PPTX, PNG and other documents with free to use online GroupDocs Annotation App.
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.