HACKER Q&A
📣 gitgud

Recommendations for generating pdf/docx reports in code?


Looking at generating reports in a system we're building.

There's tonnes of options, does anyone have any experience or recommendations?


  👤 dredmorbius Accepted Answer ✓

👤 tmaly
I have used a Perl module PDF::API2 to make some nice pdf reports with tables and images about 10 years back. The reports are still being generated to date.

👤 sebst
Princexml did a good job when I used it years ago, as well as TCPDF did.

Recently, I only used weasyprint, which works like a charm for my needs.


👤 nivethan
We generate html pages and then convert them using wkhtmltopdf. It works pretty well and the simplicity of it is nice.

👤 LarryMade2
Using what programming language? - this is important.