5

Are there any wrappers to any of the other PDF generating packages for PHP that provide API compatibility with PDFlib?

Our company has been generating PDFs from PHP using PDFlib for many years, but have not upgraded since version 5. Now that we are upgrading some servers, we need either upgrade or find a replacement. I'd like to replace PDFlib with an open-source product that allows commercial use. However, we (foolishly, perhaps) didn't write our own wrapper around PDFlib the first time around, and have many, many lines of code that would need to be changed and tested.

I realize I could write my own wrapper, but I find it surprising that my searching thus far has yielded no-one else who has done the same.

David Alan Hjelle
  • 942
  • 1
  • 10
  • 23
  • So I started work on my own, using the TCPDF (http://tcpdf.org) library. Since we use little of the total functionality of PDFlib, I was able to complete about 60% of a wrapper in 4 hours or so. Good enough that we probably won't be upgrading PDFlib after all. Still be interested if anyone has a fully-featured wrapper, though. – David Alan Hjelle Mar 27 '10 at 13:44
  • Any intention to open source the wrapper you wrote? – Sherri Mar 30 '10 at 19:54

3 Answers3

1

Maybe this PHP Class can help you out

Shuriken
  • 703
  • 5
  • 9
0

I personally use fpdf - very powerful and has lots of user generated scripts to do anything you can think of.

Also free

Geek Num 88
  • 5,264
  • 2
  • 22
  • 35
0

If any one is interested, I did open-source the wrapper I wrote. It's very minimal—just enough for our needs—but it works. See its Github page for more info.

David Alan Hjelle
  • 942
  • 1
  • 10
  • 23
  • Take care, the license of the TCPDF library (which you extend with your software and which still is a PDF library) is licensed under the GNU LESSER GENERAL PUBLIC LICENSE. You should put your code under the same license. – hakre May 07 '12 at 15:46