This example shows how to stamp eForm fields into a document so that the values are indelibly marked
First we create an ABCpdf Doc object and read in our template form.
using var doc = new Doc(); doc.Read("../mypics/form.pdf"); doc.Form.NeedAppearances = false; // for PDF 2.0 doc.Font = doc.AddFont("Helvetica-Bold");
We set the values of selected fields and then we stamp all field values into the document.
doc.Form["Day"].Value = "23"; doc.Form["Month"].Value = "February"; doc.Form["Year"].Value = "2005"; doc.Form["State"].Value = "Arizona"; doc.Form.Stamp();
Finally we save.
doc.Save("eformstamp.pdf");
Given the following document.
form.pdf
This is the kind of output you might expect.
eformstamp.pdf