DEV Community

Discussion on: What tools do you use for server side PDF generation?

Collapse
 
elabftw profile image
eLabFTW

I use github.com/mpdf/mpdf with a custom stylesheet, it works very well and is maintained.

Collapse
 
christianca profile image
Christian Córdoba

Hi, thanks! I've heard of mpdf from one of our team members but we have the same pain point. Have you ever generated a complex design with mildly complex dynamic data?

Definitely having a very active repository makes it very appealing. I guess we'll have to prototype something and evaluate the developer experience while working and the results.

Collapse
 
elabftw profile image
eLabFTW

Well, here is the kind of pdf I generate. Is it complicated enough for you ? :p

get.elabftw.net/a.pdf

Thread Thread
 
christianca profile image
Christian Córdoba

Oh that is kind of inspiring :) PDFs are such a pain for almost every colleague I talked to about this issue '

Collapse
 
dakira profile image
Matthias Niess

Hey, sorry for replying to this old thread, but could you go into more detail on how you use mpdf for complex layouts?

Collapse
 
elabftw profile image
eLabFTW

I guess the best is just to link you to this: github.com/elabftw/elabftw/blob/ma...

and the CSS: github.com/elabftw/elabftw/blob/ma...

and the kind of output you can have: demo.elabftw.net/make.php?what=pdf...