cfpdfform xmldata example

Below is an example to extract data from a PDF Form in XML format. You can download the entire example(including the source pdf and cfm) from the download button.

<!--- The source pdf file. --->
<cfset sourcefile = "#ExpandPath('UpdatedApplication.pdf')#">

<cfpdfform source="#sourcefile#" action="read" xmldata="mydata">
</cfpdfform>

<!--- Dump the data to browser. --->
<cfdump var = "#mydata#">

<!--- You can write the the data to a xml file using cffile. --->
<cffile action="write" output="#mydata#" file="C:\ColdFusion8\wwwroot\myxmlfile.xml">

Comments
# Posted By gsdgsdyy | 10/10/08 2:54 AM
# Posted By xcbzzz | 10/10/08 2:58 AM
# Posted By xcvxczzz | 10/10/08 3:03 AM
# Posted By sgsdu | 10/10/08 3:07 AM
# Posted By xcvxczzz | 10/10/08 3:11 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.9.002. Contact Blog Owner