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> </af:AcroForm> Taglib uses a free iText library. You can download it here (just save a .jar file in WEB-INF/lib directory). Tags are: AcroForm Body tag lets you fill AcroForm elements. Parameters are: 1) template Describes a path for your PDF template.
setField Body tag sets a value for the field. Parameters are: 1) name Describes a name for your field.
for downloading: Library: acroformtag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|