You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2019-01-11-picking-a-php-tool-to-generate-pdfs.markdown
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
2
layout: post
3
-
title: "Picking a PHP tool to generate PDFs (2023 update)"
3
+
title: "Picking a PHP tool to generate PDFs (2024 update)"
4
4
date: 2019-01-11 17:00:00 +0100
5
-
last_modified_at: 2023-01-11 23:00:00 +0200
5
+
last_modified_at: 2024-03-23 20:00:00 +0100
6
6
description: "Comparison of HTML to PDF conversion tools: mPDF, TCPDF, Dompdf, typeset.sh, wkhtmltopdf, Headless Chrome, WeasyPrint and Prince."
7
7
excerpt: I spent a lot of time working with different tools to generate PDF files, mainly invoices and reports. Some of these documents were really sophisticated, including multi-page tables, colorful charts, headers and footers. I tried generating documents by hand and converting HTML to PDF, or even LaTeX to PDF.
8
8
image: /assets/generating_pdf_files.jpg
@@ -59,15 +59,15 @@ To give you some idea of what to expect from above libraries, I compiled **a com
59
59
</figure>
60
60
<figureclass="image">
61
61
<img src="/assets/invoice-tcpdf.png" width="370" height="480" alt="Invoice rendered by TCPDF">
62
-
<figcaption>TCPDF 6.6.2</figcaption>
62
+
<figcaption>TCPDF 6.7.4</figcaption>
63
63
</figure>
64
64
<figureclass="image">
65
65
<img src="/assets/invoice-mpdf.png" width="370" height="480" alt="Invoice rendered by mpdf">
66
-
<figcaption>mPDF 8.1.4</figcaption>
66
+
<figcaption>mPDF 8.2.3</figcaption>
67
67
</figure>
68
68
<figureclass="image">
69
69
<img src="/assets/invoice-dompdf.png" width="370" height="480" alt="Invoice rendered by Dompdf">
70
-
<figcaption>Dompdf 2.0.1</figcaption>
70
+
<figcaption>Dompdf 2.0.4</figcaption>
71
71
</figure>
72
72
</div>
73
73
@@ -90,11 +90,11 @@ Two other tools I discovered are [WeasyPrint](https://weasyprint.org/) and [Prin
90
90
</figure>
91
91
<figureclass="image">
92
92
<img src="/assets/invoice-weasyprint.png" width="370" height="480" alt="Invoice rendered by WeasyPrint">
93
-
<figcaption>WeasyPrint 57.2</figcaption>
93
+
<figcaption>WeasyPrint 61</figcaption>
94
94
</figure>
95
95
<figureclass="image">
96
96
<img src="/assets/invoice-prince.png" width="370" height="480" alt="Invoice rendered by Prince">
97
-
<figcaption>Prince 14.2</figcaption>
97
+
<figcaption>Prince 15.3</figcaption>
98
98
</figure>
99
99
<figureclass="image">
100
100
<img src="/assets/invoice-wkhtml.png" width="370" height="480" alt="Invoice rendered by wkhtmltopdf">
0 commit comments