Solved

Coldfusion Word to PDF conversion

Posted on 2013-01-18
4
492 Views
Last Modified: 2013-07-29
Hi,

I currently have a CF pgm that prompts for certain fields using a form and these form fields are embedded within a RTF variable (after the RTF variable has been created with a cffile read function) by replacing certain field containers. e.g. %NAME% or %ADDRESS%.

After replacing these containers in the RTF variable, the RTF is opened for the user in Word using the below functions;

 <cfheader name="Content-Disposition" value="#cname#">
 <cfcontent type="application/msword"><cfoutput>#rtf#</cfoutput>

This works like a charm but now they are requesting to open the rtf variable in PDF so no changes can be made to the document.

Is this possible?

Thanks,

Errol
0
Comment
Question by:Errol Farro
  • 2
  • 2
4 Comments
 
LVL 15

Expert Comment

by:myselfrandhawa
ID: 38798162
i have been through this, but for pdf it will not play good, you need some kind of external tool which you can execute through cfexecute to make it work
0
 

Author Comment

by:Errol Farro
ID: 38798309
thanks myselfrandhawa. Do you know of any external tool that does this?
0
 
LVL 15

Accepted Solution

by:
myselfrandhawa earned 350 total points
ID: 38799084
0
 

Author Comment

by:Errol Farro
ID: 38802916
Looks ok to convert html to pdf but I need one to convert rtf to pdf.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article discusses how to create an extensible mechanism for linked drop downs.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now