Here's my situation. I have an equipment test platform that runs tests (Selenium, Perl, and a lot of custom code). The results are currently output into an HTML file which any browser can display. It's one long page with many large tables (full page width and multipage, but a row is smaller than a page). The problem is that this page is not printable all that well. I haven't found a browser yet that obeys all the CSS3 directives, particularly starting headers on odd pages (works on IE10+ only) and not splitting table rows across pages. I'd also like to expand the Table of Contents with leader dots and auto-fill the page numbers. Header page numbers and security footers work OK. If there was a browser that cleanly printed from HTML, that would be satisfactory.
Anyway, my customers are asking if they could get the output in PDF format. Looking around, I see a few HTML-to-PDF converters, but either they don't work that well, are expensive, require a server installation (for PHP), or are on someone else's site (we're concerned about sending our proprietary information offsite to convert). The resulting PDF should be fairly straightforward: no input or forms, no encryption, a few PNG or JPEG images, a few text colors, and a lot of tables and text. All page links are within the document -- it is OK to lose them. There are just a few "standard" fonts. Can anyone suggest some options? A command-line interface is fine (in fact, preferred, so it can be run from a script). I tried direct PDF output from Chrome, and the results were unsatisfactory (can I configure page size, scale, etc.?).
I'm open to producing the PDF from the original text and data (i.e., not going through an HTML file as an intermediate form). A library that would work with my current Perl code would be preferred, to minimize rewriting (how good is PDF::Create?). I see some PHP-based libraries, but is it possible to have PHP without a server? (server installation is not allowed here) Very importantly, the whole point of outputting to HTML in the first place was that I didn't have to count characters and line lengths and fit to pages -- let a browser take care of all that. Is there a library to output PDF that takes care of all that clerical stuff for me?
Whatever the solution, it needs to run on Windows at a minimum (Linux is fine, too). Thanks much for suggestions!