cfpdf 또는 cfpdfform으로 필드의 이름을 바꿀 수 없습니다. 병합하기 전에 각 양식을 채우고 병합하여 문제점을 해결할 수 있습니다.
<!--- populate each form --->
<cfloop from="1" to="#arrayLen(files)#" index="i">
<cfset destination = "#i#.pdf" />
<!--- fill in form fields --->
<cfpdfform
action = "populate"
source = "#pdf_source_file#"
destination = "#destination#"
>
<!--- form params here --->
</cfpdfform>
<!--- flatten file --->
<cfpdf
action = "write"
source = "#destination#"
destination = "#destination#"
flatten = "yes"
/>
</cfloop>
<!--- merge flattened files --->
<cfpdf action="merge" name="output">
<cfloop from="1" to="#arrayLen(files)#" index="i">
<cfpdfparam source="#i#.pdf">
</cfloop>
</cfpdf>
<!--- return the full pdf --->
<cfcontent type="application/pdf" reset="true" variable="#toBinary(output)#">
감사 :
다음은 간단한 예입니다. 안타깝게도 사용자가 다운로드 한 후 편집 할 수 있도록 파일을 병합하지 않으려합니다. –