Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Created November 20, 2019 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GroupDocsGists/a55091454cc98ae11d1e78cca45a1438 to your computer and use it in GitHub Desktop.
Save GroupDocsGists/a55091454cc98ae11d1e78cca45a1438 to your computer and use it in GitHub Desktop.
using (Annotator annotator = new Annotator("input.pdf"))
{
ArrowAnnotation arrow = new ArrowAnnotation
{
Box = new Rectangle(100, 100, 100, 100),
CreatedOn = DateTime.Now,
Message = "This is arrow annotation",
Opacity = 0.7,
PageNumber = 0,
PenColor = 65535,
PenStyle = PenStyle.Dot,
PenWidth = 3,
Replies = new List<Reply>
{
new Reply
{
Comment = "First comment",
RepliedOn = DateTime.Now
},
new Reply
{
Comment = "Second comment",
RepliedOn = DateTime.Now
}
}
};
annotator.Add(arrow);
annotator.Save("result.pdf");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment