I have attached the html version of a bill produced by our billing system and also the PDF the way we expect it to look. In this case the PDF was created by opening the HTML file in FireFox (for Mac) and saving it to PDF using the OS X built in print to PDF function. We need a way of automating this process on the server side (Linux billing server) while maintaining the exact same look of the PDF that is output. We want this done a command line Linux script. We don;t care which scripting language it is done in. Perl, PHP etc. choice is yours.