ByteScout tutorials describe the stuff for programmers who use VB.NET. ByteScout Premium Suite was created to assist fill pdf form with pdf sdk in VB.NET. ByteScout Premium Suite is the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording.
The below SDK samples describe how to quickly make your application do fill pdf form with pdf sdk in VB.NET with the help of ByteScout Premium Suite. If you want to implement this functionality, you should copy and paste code below into your app using code editor. Then compile and run your application. Use of ByteScout Premium Suite in VB.NET is also described in the documentation included along with the product.
ByteScout Premium Suite is available as a free trial. You may get it from our website along with all other source code samples for VB.NET applications.
Imports Bytescout.PDF ''' <summary> ''' This example demonstrates how to fill PDF form programmatically. ''' </summary> Class Program Shared Sub Main() ' Load PDF form Dim pdfDocument = New Document("form.pdf") pdfDocument.RegistrationName = "demo" pdfDocument.RegistrationKey = "demo" Dim page = pdfDocument.Pages(0) ' Get widget by its name and change value DirectCast(page.Annotations("editBox1"), EditBox).Text = "Test 123" DirectCast(page.Annotations("editBox2"), EditBox).Text = "Test 456" DirectCast(page.Annotations("checkBox1"), CheckBox).Checked = True ' Save modified document pdfDocument.Save("result.pdf") ' Cleanup pdfDocument.Dispose() ' Open document in default PDF viewer app Process.Start("result.pdf") End Sub End Class