开发者

How can I pass an array to CFPDFFORM and have it fill the PDF inputs with the key/values in my array?

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 开发者_C百科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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜