Coldfusion Word to PDF conversion

Posted on 2013-01-18
Last Modified: 2013-07-29

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?


Question by:Errol Farro
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 16

Expert Comment

by:Gurpreet Singh Randhawa
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

Author Comment

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

Accepted Solution

Gurpreet Singh Randhawa earned 350 total points
ID: 38799084

Author Comment

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

Featured Post

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them ( . I did keep the main js functions but made sever…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

691 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