Errol Farro
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#</cfo utput>
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
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"
<cfcontent type="application/msword">
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
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
ASKER
thanks myselfrandhawa. Do you know of any external tool that does this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Looks ok to convert html to pdf but I need one to convert rtf to pdf.