The coding instructions are formulated to help you to try-out the features without the requirement to write your own code. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can add text annotation in pdf with pdf sdk in VB.NET.
Want to save time? You will save a lot of time on writing and testing code as you may just take the VB.NET code from ByteScout Premium Suite for add text annotation in pdf with pdf sdk below and use it in your application. Follow the instructions from scratch to work and copy the VB.NET code. This basic programming language sample code for VB.NET will do the whole work for you to add text annotation in pdf with pdf sdk.
You can download free trial version of ByteScout Premium Suite from our website with this and other source code samples for VB.NET.
Imports Bytescout.PDF ''' <summary> ''' This example demonstrates how to add a text annotation. ''' </summary> Class Program Shared Sub Main() ' Create new document Dim pdfDocument = New Document() pdfDocument.RegistrationName = "demo" pdfDocument.RegistrationKey = "demo" ' Add page Dim page = New Page(PaperFormat.A4) pdfDocument.Pages.Add(page) ' Add collapsed annotation (shown as a tooltip when mouse is over the icon) Dim collapsedAnnotation = New TextAnnotation(20, 20) collapsedAnnotation.Color = New ColorRGB(255, 255, 0) collapsedAnnotation.Icon = TextAnnotationIcon.Comment collapsedAnnotation.Author = "Mr. Important" collapsedAnnotation.Contents = "The quick brown fox jumps over the lazy dog." page.Annotations.Add(collapsedAnnotation) ' Add expanded annotation Dim expandedAnnotation = New TextAnnotation(20, 50) expandedAnnotation.Color = New ColorRGB(255, 0, 0) expandedAnnotation.Icon = TextAnnotationIcon.Note expandedAnnotation.Open = True expandedAnnotation.Author = "John Doe" expandedAnnotation.Contents = "The quick brown fox jumps over the lazy dog." page.Annotations.Add(expandedAnnotation) ' Save document to file pdfDocument.Save("result.pdf") ' Cleanup pdfDocument.Dispose() ' Open document in default PDF viewer app Process.Start("result.pdf") End Sub End Class