GroupDocsGists
10/24/2017 - 5:12 PM

gistfile1.txt

' For complete examples and data files, please go to https://github.com/groupdocs-annotation/GroupDocs.Annotation-for-.NET
' Get input file stream
            Dim inputFile As Stream = New FileStream(CommonUtilities.MapSourceFilePath(filePath), FileMode.Open, FileAccess.ReadWrite)

            ' Initialize list of AnnotationInfo
            Dim annotations As New List(Of AnnotationInfo)()
     {
                PageNumber = 0,
                Type = AnnotationType.Point,
                Box = new Rectangle(100, 100, 0, 0),
                FieldText = "Hello!",
                CreatorName = "John"
            }
 ' Add annotation to list
            annotations.Add(areaAnnnotation)

            ' Export annotation and save output file
            'ExEnd:AddAreaAnnotationWithReplies
CommonUtilities.SaveOutputDocument(inputFile, annotations, DocumentType.Images)