PHPライブラリ TCPDF でPDF帳票を作成する。
https://github.com/tecnickcom/tcpdf から git clone
git clone https://github.com/tecnickcom/TCPDF.git
いくつかの利用方法がある。