I need to convert data from a MYSQL database that is rendered into a page using PHP into a PDF document.
Coldfusion is my weapon of choice for converting pages to PDF as the tags make it easy.
Coldfusion is excuted from its own server and the PHP is executed from an Apache server.
The problem I have is getting the Coldfusion to execute my PHP page so it can be converted into a PDF as it doesn’t include PHP support as standard.
Have you considered simply using CFHTTP to request the PHP page that renders the SQL data as HTML? You could then take the resulting HTML and wrap that in
cfdocumentto make your PDF.Alternatively, from PHP you could use the PDF “service” that’s included as a part of CF 9 and later. Check out the WSDL here: http://{your host name}/CFIDE/services/document.cfc?wsdl
This provides most of the capabilities of cfdocument as a service. Here’s a quick link with some details