Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Create list of annotations
List<AnnotationBase> annotations = new List<AnnotationBase>()
{
new AreaAnnotation()
{
PageNumber = 0,
Box = new Rectangle(100, 100, 100, 100),
Message = "area"
},
new EllipseAnnotation()
{
PageNumber = 0,
Box = new Rectangle(200, 200, 80, 80),
Message = "ellipse"
}
};
// Create annotator
using (Annotator annotator = new Annotator("input.pdf"))
{
// Add annotations
annotator.Add(annotations);
// Save result to "result.pdf"
annotator.Save("result.pdf", new SaveOptions());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.