English | 日本
BCL Technologies
Shopping CartContact Us

Processing PDF Form Fields in ASP.NET


  • Extract, insert, and update data in PDF Forms.

Code Snippet

Download the input.pdf form (line 27 below)

'this example takes the first two fields in a PDF template 
'which are Name and Address and populates them with values 
'of "BCL Technologies" and "Santa Clara, CA"
Dim oLoader As Loader = Server.CreateObject("easyPDF.Loader.7")
Dim oDocument As PDFDocument = oLoader.LoadObject("easyPDF.PDFDocument.7")
'get all form fields from the PDF
Dim oFormFields As FormFields = oDocument.FormFields
'get the first form field
Dim oFormField As FormField = oFormFields.Item(0)
Dim oTextField As TextField
If oFormField.Type = docFormFieldType.DOC_FRMTYPE_TEXT And oFormField.Name = "Name" Then
  'set Name to "BCL Technologies"
  oTextField = oFormField
  oTextField.Value = "BCL Technologies"
End If
'get the second form field
oFormField = oFormFields.Item(1)
If oFormField.Type = docFormFieldType.DOC_FRMTYPE_TEXT And oFormField.Name = "Address" Then
  'set Address to "Santa Clara, CA"
  oTextField = oFormField
  oTextField.Value = "Santa Clara, CA"
End If


Download Free Trial

Request Pricing

QuickStart Video
Watch a QuickStart Video on how to use easyPDF SDK in ASP and ASP.NET Web Server Environment.

PDF Features
Testimonials from Our ASP.NET Customers
  • “easyPDF SDK setup was very straightforward, unlike our experience with other products. We wrote just a few lines of code to start using it.” Read the case study
  • “We evaluated many PDF tools and drivers. We even wrote our own. Except for BCL’s easyPDF SDK, all had limitations we couldn’t live with. Some only converted from MS Office and not very well. Others could not do annotation or text stamping on PDF documents. None were as easy to use and as easy to integrate.” Read the case study
© 1993 - , BCL Technologies.
All other trademarks are the property of their respective owners.