macromedia.coldfusion.advanced_techniques
[Top] [All Lists]

Re: help from generate pdf from http pdf document

Subject: Re: help from generate pdf from http pdf document
From: "BKBK"
Date: Thu, 6 Nov 2008 17:52:06 +0000 UTC
Newsgroups: macromedia.coldfusion.advanced_techniques

[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.


<Prev in Thread] Current Thread [Next in Thread>