SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: PHP Form to PDF

  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2006
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP Form to PDF

    I am developing a site for my own business and want to keep the ordering system really simple.

    What I would like to do is produce a booking form that the customer fills in that when they submit transfers the data to an already laid out PDF that will already include other pages such as terms and conditions, our contact details and even a postage label that they can use to send the item to us. When submit is clicked on the form, this PDF will open in a seperate window and allow the customer to print it out and also save it.

    Is this even possible and how technically difficult is it to accomplish as that will decide if I do it myself or look to pay for someone to do it for me.

    Many Thanks

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,825
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    take a look at http://fpdf.org and http://www.setasign.de/products/pdf-php-solutions/fpdi/ which between them allow you to use PHP to update an existing PDF.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 2007
    Location
    Pakistan
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    tcpdf is another alternative you can check http://www.tecnick.com/public/code/c...tcpdf_examples

  4. #4
    SitePoint Member
    Join Date
    Mar 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you want to really simplify the task, give a try to our product PD4ML.

    In order to produce PDFs you need to create PHP/HTML the usual way and let PD4ML to convert it to PDF. PD4ML is a tool/library written in Java, and it can be easily integrated into PHP environment on any platform.

    Take a look to HOWTO document on pd4ml com site. (Sorry I am not allowed to publish direct links)

    We tried to make PD4ML+PHP integration procedure as simple as possible.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •