Creating PDF files with php

Discussion in 'PHP' started by NoamBarz, Dec 27, 2011.

  1. #1
    Hi,

    I need to create PDF files on the fly using php only.
    I know of FPDF and TCPDF. Both work well. However, I would like be able to import PDF pages from another pdf file into the files I create.
    It seems like FPDI would be the solution. However, FPDI does not support pdf files that are of a higher version than 1.4.
    It actually does support them, but requires a license fee.

    I need a free solution. Can anyone suggest one?
     
    NoamBarz, Dec 27, 2011 IP
  2. Jaxo

    Jaxo Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Another forum I participate in has a thread similar to this one with some solutions, maybe there's an answer there.

    What the guy ended up doing is using a shell_exec command to make the PDFs using Ghostscript.
     
    Jaxo, Dec 31, 2011 IP
  3. phpexperts

    phpexperts Greenhorn

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    21
    #3
    you can use dompdf to create pdf file using php.

    for more info please check http://code.google.com/p/dompdf/
     
    phpexperts, Jan 2, 2012 IP
  4. DevSwift

    DevSwift Peon

    Messages:
    103
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    0
    #4
    DevSwift, Jan 4, 2012 IP