Implements FPDI library without having to hack up its source code (much). FPDI is a PDF document importer which works with FPDF, so you can use nicely designed PDFs as templates, and then dynamically add data to them. See https://github.com/Setasign/FPDI or https://www.setasign.com/products/fpdi/about/