AcroForm taglib ver. 1.2

    Custom JSP taglib lets you fill interactive AcroForm elements (like text input fields etc.) in your PDF files. Custom JSP tags let you open some PDF with AcroForms (your template), fill the fields and stream the final PDF file to user's browser. For example:

<%@ page contentType="application/pdf" %>
<%@ taglib uri="taglib.tld" prefix="af" %>

<af:AcroForm template="bill.pdf">
  <af:setField name="user">Joe Doe</af:setField>
  <af:setField name="amount">$10,000</af:setField>

Taglib uses a free iText library. You can download it here (just save a .jar file in WEB-INF/lib directory).

Tags are:


Body tag lets you fill AcroForm elements. Parameters are:

1) template Describes a path for your PDF template.
2) outFile Optional parameter. Describes a path for the processed PDF file (template with the filled fields). By default tag will use a temporary file.


Body tag sets a value for the field. Parameters are:

1) name Describes a name for your field.
2) cond Optional attribute, describes a boolean value tag's behavior depends on. Default value is true (set field).

for downloading:

 Library: acroformtag.jar     Description: taglib.tld

 © Coldbeans      Comments?

See also Coldtags suite - the largest collection of custom JSP tags.

Also in Coldtags: