Alternative title: How I got multiple cups-pdf printers on the same server. (I didn’t, but postprocessing let me work around the problem).
Preamble:
I have a small business. For years we’ve been creating PDFs from any computer on our network through a “virtual appliance’ called YAFPC (“Yet Another Free PDF Composer”).
The appliance originally ran on an old PC, then on a server that ran several other virtual machines. It had a neat web interface and would allow PDF printers to be created that would appear on the network for all of our users to use. It had one printer for plain A4 paper, one for A4 paper with a letterhead background, another one for an obscure use of mine, and so on. If you printed to it, it would email you the PDF (for any user, without any extra setup needed per user). It could also put the PDFs on one of our file servers or make them available from it’s built in file server.
If I remember correctly it cost £30 and ran since 2006 right through until today, November 2014. One of my best software investments!
However, Windows 8 came along and it no longer worked. Getting Windows 8 to print to it directly turned out to be impossible. The program was not going to be updated or replaced with a new version. I managed a short term work around having windows 8 print to a samba printer queue which converted and forwarded to the YAFPC virtual appliance. There were problems, page sizes not be exact and so on but it worked in a fashion.
Roll forward to today when I’ve just got a new network PDF virtual printer working. It wasn’t so easy to do (some 20 hours I guess) so here are my setup notes for others to follow. The final run through of these notes had it installed and working in about an hour.
These steps assume you know quite a bit about setting up linux servers. Please feel free to use the comments to point out errors or corrections, or add more complete instructions, and I’ll edit this post with the updates. Also please suggest alternatives methods that you needed to use to meet your needs.
Overview – We are going to create:
- a new Ubuntu based linux server as a virtual machine
- Install CUPS, the Common Unix Printing System
- Install CUPS-PDF, and extension that allows files to be created from the print queue
- Create a postprocessing script that will run every time CUPS-PDF is used that will customise our PDF’s and send them where we want them (to our users).
Sounds simple, right 🙂