|
|
[i]I try with cfdocument but it doesn't work...[/i]
I don't expect it to. Cfdocument is for converting from CFML and HTML to PDF,
not for merging.
Since you're on CF8, you can use the cfpdf tag. The following example
downloads two PDF files, then merges them. However, I get the feeling there
should be a more efficient way.
cfhttp getasbinary="yes" method="get"
url="http://www.adobe.com/products/coldfusion/pdfs/cf8_performancebrief.pdf"
file="file1.pdf" path="c:\downloads\pdfs\">
<cfhttp getasbinary="yes" method="get"
url="http://www.adobe.com/products/coldfusion/pdfs/adobecoldfusionevangelismkit.
pdf" file="file2.pdf" path="c:\downloads\pdfs\">
<cfpdf action = "merge" destination = "c:\downloads\pdfs\merged.pdf"
overwrite="Yes">
<cfpdfparam source="c:\downloads\pdfs\file1.pdf">
<cfpdfparam source="c:\downloads\pdfs\file2.pdf">
</cfpdf>
PDFs downloaded and merged.
|
|