Call the Save method. Specify the output document path or stream.
The following code snippet shows 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");}
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.