Pdf generator/export

I am looking for an solution that will allow me to export a div to pdf that is built with databindings…

I use TCPDF for the creation of dynamic invoices. I have not tried using databindings, but, theoretcally, this should not be a problem.

Have a look at https://www.youtube.com/watch?v=R32LF_pONNY or Google the subject.

1 Like

You can use wkhtmltopdf for that

Most OS have a Print to PDF option, so you would only need a separate css for print. If you would like to generate a PDF on the server and let the user download that, there are several open source libraries that can generate those, but you can’t use databindings with that.

We have come across a fantastic solution for generating PDF’s. Output can be styled with CSS, template structures, page breaks, page numbering and header text/logos can all be customised. Simple library all in JS. Free no watermarking, no nonsense, straight PDF exports!

Part of the Kendo UI: https://www.telerik.com/kendo-ui

Example and parent site:

Quick tutorial:

Further example:

In the past we have had to build our PDFs specifying x and y coordinates for placement of content, which can get rather messy so we had to find a solution, and this component answered all our requirements.

Hope it helps anybody looking to do the same!

1 Like