Last active
April 22, 2019 14:22
-
-
Save GroupDocsGists/d8c97ca1a39d059735cbabe41239958a 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
// For complete examples and data files, please go to https://github.com/groupdocs-annotation/GroupDocs.Annotation-for-.NET | |
// Get input file stream | |
Stream inputFile = new FileStream(CommonUtilities.MapSourceFilePath(CommonUtilities.filePath), FileMode.Open, FileAccess.ReadWrite); | |
// Initialize list of AnnotationInfo | |
List<AnnotationInfo> annotations = new List<AnnotationInfo>(); | |
// Initialize ellipse annotation. | |
AnnotationInfo ellipse = new AnnotationInfo | |
{ | |
Box = new Rectangle(100, 100, 50, 50), | |
Type = AnnotationType.Ellipse; | |
}; | |
// Add annotation to list | |
annotations.Add(ellipse); | |
// Export annotation and save output file | |
CommonUtilities.SaveOutputDocument(inputFile, annotations, DocumentType.Pdf); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment