Jump to content


Photo

Edit PDF via PHP


  • Please log in to reply
2 replies to this topic

#1 alfman05302001

alfman05302001
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 12 May 2006 - 08:52 PM

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

#2 hvle

hvle
  • Members
  • PipPipPip
  • Advanced Member
  • 667 posts
  • Locationmelbourne, Australia

Posted 13 May 2006 - 01:16 AM

[!--quoteo(post=373316:date=May 13 2006, 06:52 AM:name=alfman05302001)--][div class=\'quotetop\']QUOTE(alfman05302001 @ May 13 2006, 06:52 AM) View Post[/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.

Life's too short for arguing.

#3 alfman05302001

alfman05302001
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 13 May 2006 - 03:36 AM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users