#38639·dolibarr

Dolibarr and TCPDF -> tc-lib-pdf

Author: lycaon-qcCreated Jun 8, 2026Updated Oct 1, 2026

Greetings,

On the website of the Dolibarr documentation, on creating a PDF document, we can see that the library used to create PDF documents in PHP is TCPDF: https://wiki.dolibarr.org/index.php/Create_a_PDF_document_template#Library_for_PDF_manipulation

This is also what we can see with "htdocs/includes/tecnickcom/tcpdf/tcpdf.class.php" in the latest version of Dolibarr (v23.0.3).

However, on the site of TCPDF (https://tcpdf.org/), we can see that TCPDF is depreciated, and that tc-lib-pdf is to be used with PHP 8.2+.

As indicated here (https://tcpdf.org/#legacy-tcpdf-vs-new-tc-lib-pdf), the << Recommendation:

  • Starting a new project: use tc-lib-pdf.
  • Running legacy TCPDF in production: keep it stable short-term and plan phased migration. >>

I have seen a discussion on the Dolibarr forum, related to the fact that TCPDF is depreciated: https://www.dolibarr.fr/forum/t/tcpdf-tc-lib-pdf/51422 The user "defrance" indicates that tc-lib-pdf requires PHP v8.2, while Dolibarr still supports 7.4 (based on the ChangeLog for 23.0.0 compared to 22.0, it seems that Dolibarr v23+ would also support PHP 7.2 - https://github.com/Dolibarr/dolibarr/blob/23.0/ChangeLog)

I have looked around but I have not found another discussion on Dolibarr forum/github related to this topic. (My apologies if I have missed something.)

Is there a clear statement from Dolibarr on this topic? Are there plans to migrate from TCPDF to tc-lib-pdf in a future version?

Thank you in advance for the information.