News for hackers. Stuff that matters.
Re:URL to PDF Microservice by djs070 on Thursday October 05, 2017 @04:56PM (#15412516)
I would like to adopt something like this, but there are some pretty normal table functions in our current print solution that I don't know how to support in HTML.

E.g. on a multi-page invoice, show a sub-total row at the bottom of each page. Does anyone know how to create this kind of function?

Re:URL to PDF Microservice by pier25 on Thursday October 05, 2017 @05:07PM (#15412601)
IIRC you can solve that using CSS for print media.

The browser will display a different CSS to the printer, so to speak.

Re:URL to PDF Microservice by amigoingtodie on Thursday October 05, 2017 @06:09PM (#15412946)
Yes, and instead of px or em, you can use mm for css units (positioning, size, etc.).
Re:URL to PDF Microservice by jessegavin on Thursday October 05, 2017 @05:21PM (#15412682)
Use a <tfoot> element (unless you're actually trying to show a sub-total of just the page you're looking at).
Re:URL to PDF Microservice by djs070 on Thursday October 05, 2017 @07:10PM (#15413271)
Yeah literally need to add an invoice subtotal for the items on that page
Re:URL to PDF Microservice by jakemauer on Thursday October 05, 2017 @05:08PM (#15412606)
I'd be interested in this as well. The industry standard, PrinceXML, has a huge licensing fee (currently $3800 per server), but it's also rock solid, handles modern CSS, and has hooks for adding things like headers and footers for pages and tables.