Yes, It is completely possible to generate PDF files on the fly in your server side scripts however the information is quite limited when it comes to updation of existing PDF documents. Have a look at the following article which has information and various tools to generate PDF files in PHP.
Generate PDF files in PHP - HTML to PDF Conversion
Sincerely,
Ajay Chadha (Director)
Chadha Software Technologies