Therefore, I wondering if there was a way to configure the guest to work as either a virtual printer like PDFCreator to convert .tex files to pdf's or, if that's not practical/overly complex, executing latex via php (I'm not familiar with php so if this is obvious I apologize in advance). PHP would probably be the easy answer either way, but implementing a printer over the network seems more interesting and more practical as a local network service for a small business or whatnot. Over all I think it would at least be interesting in the sense of figuring out how to offer a normally non-networked service over the network.
So far Apache, php, MySQL, and latex are all up and running. I configured 2 Ethernet adapters, one on NAT and one for host only. The host-only adapter is set auto connect. The NAT adapter was left as manual because I am only using the internet to pull down packages and updates, and there is no reason to leave the guest open to the outside as it is more of a sandbox/workspace than a production server.
I'm not so much looking for a laid out answer as much as sources that would be helpful in solving the problem. I did notice latex is available for windows but that seems like it would be boring (install and done) and/or painful (windows command line >.<). This is now more of a puzzle or personal challenge and a learning device more than anything, but I'm not sure were to even start looking.
My ideas from thinking on the problem:
- Some sort of shared network printer configuration; however my guess would be a shared network printer would not be able to return a file to the client.
- A client/server application pair. Client offers the tex file to the server which sends back either a PDF which can be saved or an error log from latex.
- A PHP page that uploads the file and displays an error log or offers the PDF as a result. While it would still be interesting to do it has less integrated feeling than a virtual or shared printer.
I'm fairly sure this is doable with the PHP route however I've never worked with PHP before only HTML, but then I'll probably have to learn it at some point anyway.
If this question would is more appropriate on another forum I'd be happy to move it as well. I wasn't sure where to ask it and figured I'd start somewhere.