FPDF is a PHP class which allows to generate PDF files with pure PHP. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.
Why do you think that https://github.com/mpdf/mpdf is a good alternative to FPDF