An excellent tutorial on how to create PDF files dynamically using PHP and Haru written by Will Sinclair. And here is a quote from the article that grabbed my attention
“When it comes to working with different file formats, PHP is like a Swiss Army knife: it has a tool to handle almost anything you can throw at it. JPEG images, XML files, Word documents, ZIP archives…you name it, and there’s a PHP extension to handle it!”