Just noticed cfdocument method does not seem to support argumentCollection parameter.
Is this an oversight or is there a reason for it?
I’m trying to create a generic PDF creator function where the params are passed in from dynamic configuration, but without argumentCollection it seems i would have to declare every possible cfdocument argument and permutations based on my dynamic config?
Lucee 5.3.8.189 (windows, IIS)
<cfset myArgs = {"format":"pdf",
"saveasname":"LuceePdfTest.pdf",
"pagetype":"letter",
"orientation":"landscape",
"margin":{top:.1,bottom:.4,left:.05,right:.05}
}>
<cfdocument argumentCollection="#myArgs#">
Test
</cfdocument>
RESULT
Exception: type=template
Attribute [argumentcollection] is not allowed for tag [cfdocument] valid attribute names are [backgroundvisible,encryption,filename,fontembed,fontdirectory,format,page,margin,marginbottom,marginleft,marginright,margintop,mimetype,name,orientation,overwrite,ownerpassword,pageheight,pagewidth,pagetype,permissions,scale,src,srcfile,type,unit,userpassword,proxyhost,proxyport,proxyuser,proxypassword,bookmark,htmlbookmark,localurl,authuser,authpassword,useragent,saveasname]