FDF format support for AcroForms

PDF Acro Form now support the Forms Data Format (FDF). You can now export, import, and populate Acroforms in FDF using the read and populate actions. The action attribute of the cfpdfform tag contains a new attribute called fdfdata, where you provide the name of the PDF form to be exported or imported.

Following is an example of how can export a PDF form in FDF format using the read action:

<cfpdfform source= "acroform_export.pdf" action="read" fdfdata="abc.fdf" > 
</cfpdfform>

To import form data:

<cfpdfform source= "write_acrroform.pdf" action="populate" fdfdata="abc.fdf" destination="hello.pdf"> 
</cfpdfform>

Form data can now be populated in a PDF document using the populate action. The new fdf attribute with populate allows you use the FDF format internally. Following code snippet illustrates this feature:

<cfpdfform source="acroform2.pdf" destinat ion="source_result1 7.pdf" action="populate"  overwrite="true" fdf ="true"> 
    <cfpdfsubform  name="Text1"> 
    <cfpdf subform name="0"> 
    <cfp dfformparam name="0" val ue="Test1.0.0"> 
    <cfpd fformparam name="1" value ="Test1.0.1"> 
    <cfpdfformparam name="2" value="Test1.0.2"> 
    </cfpdfsubform> 
        <cfpdfsubform name="1"> 
        <cfpdfformparam name="0" value="Test1.1.0"> 
        <cfpdfformparam name="1" value="Test1.1.1"> 
        <cfpdfformparam name="2" value="Test1.1.2"> 
    </cfpdfsubform> 
 
    </cfpdfsubform> 
    <cfpdfsubform name="Text2"> 
    <cfpdfformparam name="0" value="Test2.0"> 
    <cfpdfformparam name="1" value="Test2.1"> 
    <cfpdfformparam name="2" value="Test2.2"> 
    <cfpdfformparam name="3" value="Test2.3"> 
    </cfpdfsubform><cfpdfformparam name="Text3" value="Test3"> 
    <cfpdfformparam name="Text4" value="Test4"> 
    <cfpdfformparam name="checkbox1" value="Yes"> 
    <cfpdfformparam name="listbox1" value="item4"> 
    <cfpdfformparam name="radiobutton1" value="2"> 
</cfpdfform>