Generating PDF in Nette. Which library?

olivedev
Člen | 3
+
0
-

I want to create the output of the transaction receipt on my app in PDF format. For that I intend to use a library instead of creating a script or using a premade script. Which PHP PDF library works best with Nette? TcPDF or MPDF

BuMoRi
Člen | 109
+
0
-

mPF works very well with Nette

Marek Bartoš
Nette Blogger | 1171
+
+3
-

These libraries are very slow and extremely limited. Generated HTML is usually different from what you see in browser and modern things like flexbox or even floats are buggy or not working at all. So you are stuck with table layouts.
What I would suggest is headless chrome. Pretty good is nodejs pupeteer or if you cannot run your own instance then service like browserless https://www.browserless.io