Jump to content

Archived

This topic is now archived and is closed to further replies.

alfman05302001

Edit PDF via PHP

Recommended Posts

So I am reasonably new to PHP, but am finding it an amazing tool that can really make websites useful. I have been browsing the web and have seen that it is possible to generate a PDF from PHP, but is it possible to edit one. I would like to do the following (if it is even possible):

Take an existing registration type document and via a form be able to insert information such as Name, Address, Date of Birth, ect. I would like that information then inserted into both the document (where it can be printed) and a MySQL table for latter use.

Once the PDF is generated i would also use the mail() function then to email out a copy of the form to the people who need record of it.

Like I said I do not even know if this is posible (or if there is a better way to do this), but any information about this would be really helpful.

Thanks

Jonathan

Share this post


Link to post
Share on other sites
[!--quoteo(post=373316:date=May 13 2006, 06:52 AM:name=alfman05302001)--][div class=\'quotetop\']QUOTE(alfman05302001 @ May 13 2006, 06:52 AM) [snapback]373316[/snapback][/div][div class=\'quotemain\'][!--quotec--]
So I am reasonably new to PHP, but am finding it an amazing tool that can really make websites useful. I have been browsing the web and have seen that it is possible to generate a PDF from PHP, but is it possible to edit one. I would like to do the following (if it is even possible):

Take an existing registration type document and via a form be able to insert information such as Name, Address, Date of Birth, ect. I would like that information then inserted into both the document (where it can be printed) and a MySQL table for latter use.

Once the PDF is generated i would also use the mail() function then to email out a copy of the form to the people who need record of it.

Like I said I do not even know if this is posible (or if there is a better way to do this), but any information about this would be really helpful.

Thanks

Jonathan
[/quote]

Yes Jonathan, there is a class that can modify pdf and it called 'fpdf153'. Just do a google on it and download. I personally haven't use it, but look at the function specification, I believe it can do what you wanted.

If you can not download it, message me and i'll send you a copy.

Share this post


Link to post
Share on other sites
I did some searching around on the web, but could not find any examples where an existing PDF was being edited with text that was being inputed via a form? I plan on continuing to look, but if anyone knows anything it would help.

Thanks

Jonathan

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.