Here's a nice tutorial on how to create dynamic pdf files : http://www.astahost.com/info.php/how-create-pdf-php_t4972.html
Yes, fpdf work well across several PHP versions and is implemented in pure PHP. No new libraries or recompiling needed. fpdf.org