Link to home
Start Free TrialLog in
Avatar of Errol Farro
Errol FarroFlag for Aruba

asked on

Coldfusion Word to PDF conversion

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
Avatar of Coast Line
Coast Line
Flag of Canada image

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
Avatar of Errol Farro

ASKER

thanks myselfrandhawa. Do you know of any external tool that does this?
ASKER CERTIFIED SOLUTION
Avatar of Coast Line
Coast Line
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Looks ok to convert html to pdf but I need one to convert rtf to pdf.