Coldfusion Word to PDF conversion


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?


Errol FarroAsked:
Who is Participating?
Gurpreet Singh RandhawaConnect With a Mentor Web DeveloperCommented:
Gurpreet Singh RandhawaWeb DeveloperCommented:
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
Errol FarroAuthor Commented:
thanks myselfrandhawa. Do you know of any external tool that does this?
Errol FarroAuthor Commented:
Looks ok to convert html to pdf but I need one to convert rtf to pdf.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.