The documentation is designed to help you to implement the features on your side. ByteScout PDF SDK was made to help with fill fields in PDF form in VBScript and VB6. ByteScout PDF SDK is the pdf library that can create, update and modify PDF files. Supports text with fonts and style selections, layers, form fields, drawing lines and objects, automatic tables, images. Can be used to create and fill pdf forms.
This rich sample source code in VBScript and VB6 for ByteScout PDF SDK includes the number of functions and options you should do calling the API to implement fill fields in PDF form. Follow the instruction from the scratch to work and copy and paste code for VBScript and VB6 into your editor. Enhanced documentation and tutorials are available along with installed ByteScout PDF SDK if you’d like to dive deeper into the topic and the details of the API.
ByteScout PDF SDK free trial version is available for download from our website. Free trial also includes programming tutorials along with source code samples.
' This example demonstrates how to fill PDF form programmatically. ' Create Bytescout.PDF.Document object Set pdfDocument = CreateObject("Bytescout.PDF.Document") pdfDocument.RegistrationName = "demo" pdfDocument.RegistrationKey = "demo" ' Load PDF form pdfDocument.Load("form.pdf") Set page = pdfDocument.Pages.Item(0) ' Get widget by its name and change value page.Annotations.Item_2("editBox1").Text = "Test 123" page.Annotations.Item_2("editBox2").Text = "Test 456" page.Annotations.Item_2("checkBox1").Checked = True ' Save document to file pdfDocument.Save("result.pdf") ' Open document in default PDF viewer app Set shell = CreateObject("WScript.Shell") shell.Run "result.pdf", 1, false