Created
November 20, 2019 17:20
-
-
Save GroupDocsGists/a55091454cc98ae11d1e78cca45a1438 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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