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">
<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
[Add Comment]
# 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
[Add Comment]
