Convert dynamic Invoice preview generated with PHP into pdf

Discussion in 'PHP' started by tejasluvs, Jun 19, 2010.

  1. #1
    I am working on a PHP application and there is a link by which Invoice Preview can be seen and it is dynamically generated. There will be an option in this preview to convert it into PDF. I am trying to find a php class or script which will easily covert the invoice preview page into PDF without any additional coding efforts.

    Thanks
     
    tejasluvs, Jun 19, 2010 IP
  2. flexdex

    flexdex Peon

    Messages:
    104
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
  3. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #3
    FOP was built just for this, and if you use a standard template (hint: use 2, one with a large "PREVIEW" pasted on it, and the proper one without) but it can be a PITA to get working if you havent used it before. Ideally you let them see the preview, then pass in the same page to an RPC or similar request for their actual PDF.

    FPDF is also "ok" too, but you will need to rework some things;
    http://www.fpdf.org/

    Failing that, PDFlib.
    http://www.fpdf.org/
     
    lukeg32, Jun 19, 2010 IP
  4. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #4
    Yeah FPDF must be used for this! :)
     
    roopajyothi, Jun 19, 2010 IP
  5. tejasluvs

    tejasluvs Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks Flexdex... I found it to be useful for my project. I will try it out.
     
    tejasluvs, Jun 21, 2010 IP