I am interested in creating a "print server" for my web application and I've thought about various ways to solve the problem and came up with this solution. I found a plug-in for firefox that will get it to print from the command line (including PDF files). So I want to install FF on my Ubuntu10 server, then have my PHP scripts call FF through the command line to print to PDF the specified URL. When the operation is complete the PHP script will pick-up the generated file and send it out to the user.
Are there any issues with installing FF with no GUI on an Ubuntu server installation? Is there any obvious bottleneck's to this solution? I've been working for the last hour or so to get Firefox to run from the command line and it keeps telling me "Error: no display specified" , which makes sense as I'm running a headless server. Is there any way to get FF to run from the command line on a server with no GUI installed?
If need be, I think we will have to setup a Desktop edition (GUI) with Apache+PHP setup on it to do what we need, but it would be nice to have it all running on server boxes.