Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 504
  • Last Modified:

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
0
Errol Farro
Asked:
Errol Farro
  • 2
  • 2
1 Solution
 
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
0
 
Errol FarroAuthor Commented:
thanks myselfrandhawa. Do you know of any external tool that does this?
0
 
Gurpreet Singh RandhawaWeb DeveloperCommented:
0
 
Errol FarroAuthor Commented:
Looks ok to convert html to pdf but I need one to convert rtf to pdf.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now