views:

56

answers:

1

Could anyone help me? I need to insert information to the header of a pdf from a customer form online with php. I am not a programmer so I need a sense of direction before I speak to my developers.

The idea is to get licence information from a field, insert the information to the header and save the result as securely as is reasonably possible before the customised file is downloaded.

Any help would be greatly appreciated.

Regards and thanks

Richard

A: 

This will generally involve opening your existing PDF file with an appropriate PDF manipulation module (Zend_Pdf works for this purpose), performing whatever operations you need, such as inserting data into the document, and then outputting the document to the user with the appropriate headers (content type and disposition) set.

If you want customers to be able to download files several times, it would be wise to have the licensing information be gathered from the user account information, rather than a form.

Victor Nicollet
Thanks for that Victor, I'll pass the Zend_pdf info onto my developers.
Mr E