How to Start Convert PDF Work with PDF Modules PDF Document PDF Pages Text Image Graph & Path Annotation, Markup & Drawing Redaction Security Digital Signature Forms Watermark Bookmark Link File Attachment File Metadata Printing Work with Other SDKs Barcode read Barcode create OCR Twain

PDF Annotation VB.NET Library
How to Add Text Box to PDF Page in VB.NET

Provide VB.NET Users with Solution of Adding Text Box to PDF Page in VB.NET Project

Look for HTML5 PDF Editor?

EdgePDF: ASP.NET PDF Editor is the best HTML5 PDF Editor and ASP.NET PDF Viewer based on XDoc.PDF, JQuery, HTML5. It supports ASP.NET MVC and WebForms projects.

Add Annotation – Add Text Box Overview

Adding text box is another way to add text to PDF page. With RasterEdge XDoc.PDF annotation control, users can also perform this work on PDF page in their VB.NET program. core pdf editor, pdf viewer in web application, tiff image viewer, core pdf preview, how to add header and footer in pdf using itextsharp in, mvc display pdf in partial view, core open excel file.

Since RasterEdge XDoc.PDF SDK is based on .NET framework 2.0, users are enabled to use it in any type of a 32-bit or 64-bit .NET application, including ASP.NET web service and Windows Forms for any .NET Framework version from 2.0 to 4.5.

How to VB.NET: Add Text Box to Specified Position

Please copy sample code below to your VB.NET class program for adding text box on specified position of PDF page.

Dim inputFilePath As String = Program.RootPath + "\\" + "2.pdf"
Dim outputFilePath As String = Program.RootPath + "\\" + "Annot_9.pdf"

' open a PDF file
Dim doc As PDFDocument = New PDFDocument(inputFilePath)
' get the 1st page
Dim page As PDFPage = doc.GetPage(0)

' create the annotation
Dim annot As PDFAnnotTextBox = New PDFAnnotTextBox()

annot.Boundary = New RectangleF(100.0F, 100.0F, 400.0F, 300.0F)

' add annotation to the page
PDFAnnotHandler.AddAnnotation(page, annot)

' save to a new file