I have a script that retrieves values from the database and fills them into a PDF form. Is there any way I can pass a single array to CFPDFFORM and have it set all the params at once, without enumerating each one explicitly as below? Where the key of my array would be the name of the param, and the value would be the value of the param?
<cfpdfform source="mypdf.pdf"
action="populate">
<cfpdfformparam name="a" value="25">
<cfpdfformparam name="B" value="3">
<cfpdfformparam name="C" value="2">
</cfpdfform>
you can not pass a single array to cfpdfform.
you can only pass bunch of cfpdfformparam or an XML (string, obj, file all will do).
If you have lots of fields to fill up, I would suggest using xml.