Skip to content

Commit 873b30f

Browse files
committed
Updated PDF generation article for 2024
1 parent faa5f45 commit 873b30f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

_posts/2019-01-11-picking-a-php-tool-to-generate-pdfs.markdown

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
layout: post
3-
title: "Picking a PHP tool to generate PDFs (2023 update)"
3+
title: "Picking a PHP tool to generate PDFs (2024 update)"
44
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
66
description: "Comparison of HTML to PDF conversion tools: mPDF, TCPDF, Dompdf, typeset.sh, wkhtmltopdf, Headless Chrome, WeasyPrint and Prince."
77
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.
88
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
5959
</figure>
6060
<figure class="image">
6161
<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>
6363
</figure>
6464
<figure class="image">
6565
<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>
6767
</figure>
6868
<figure class="image">
6969
<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>
7171
</figure>
7272
</div>
7373

@@ -90,11 +90,11 @@ Two other tools I discovered are [WeasyPrint](https://weasyprint.org/) and [Prin
9090
</figure>
9191
<figure class="image">
9292
<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>
9494
</figure>
9595
<figure class="image">
9696
<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>
9898
</figure>
9999
<figure class="image">
100100
<img src="/assets/invoice-wkhtml.png" width="370" height="480" alt="Invoice rendered by wkhtmltopdf">

0 commit comments

Comments
 (0)