This example shows how to change the values of eForm fields. In this example we simply set the contents of each field in a form with the name of that field.

 

   

Src
 

First we create an ABCpdf Doc object and read in our template form.

Set theDoc = Server.CreateObject("ABCpdf6.Doc")
theDoc.Read "c:\mypdfs\form.pdf"

 

   

Add
 

We iterate through each of the top level fields. For each field we set the value of the field to be equal to the value of the name.

For Each theField in theDoc.Form.Fields
  theField.Value = theField.Name
Next

 

   

Save
 

Finally we save.

theDoc.Save "c:\mypdfs\eformfields.pdf"

 

   

Results
 

Given the following document.


form.pdf

This is the kind of output you might expect.


eformfields.pdf