News for hackers. Stuff that matters.
Re:Apache PDFBox – A Java PDF Library by ilamparithi on Monday March 21, 2016 @11:08AM (#11328560)
I used to use a Play framework module to create simple PDFs. You just do your formatting in html and render it as a PDF. https://www.playframework.com/modules/pdf (only for 1.x series). There seems to be a version for 2.x series but I have never used it(https://github.com/innoveit/play2-pdf).
Re:Apache PDFBox – A Java PDF Library by hatchoo on Monday March 21, 2016 @11:24PM (#11334227)
I do the same but using the flying-saucer library. Just pass the HTML text (with CSS) and it gives back a PDF. Up to a certain point the limitation was getting the header row of multipage tables to appear i every page. When they got to implementing support for CSS 2.1, worked like a charm. Headers and Footers (witblh page numbers) work too.
Re:Apache PDFBox – A Java PDF Library by joshmarinacci on Tuesday March 22, 2016 @01:15AM (#11334552)
What? People still us Flying Saucer?!
Re:Apache PDFBox – A Java PDF Library by exhilaration on Monday March 21, 2016 @11:28AM (#11328734)
We outsourced this to DocRaptor (http://docraptor.com) - we just call an API with our HTML and CSS, get back pretty invoices.
Re:Apache PDFBox – A Java PDF Library by matthewcford on Monday March 21, 2016 @08:07PM (#11333356)
Which is just a SaaS version of PrinceXML (http://www.princexml.com/)