FPDF – Create PDF files with PHP

First of all, this post is tailored to PHP developers out there or at least to anyone who’s interested to create an engine or a web application that can create PDF files.

If you are working in an I.T company that produces billing statements or even web reports, then you’d probably be asked to create PDF documents. That’s where you need a PDF creation engine, such as FPDF. It’s free (for both personal and commercial use)


Now, honestly, I haven’t tried FPDF yet. I knew this from a good friend of mine this morning. He needs to create billing statements for the company’s clients.

FPDF features:

  • Choice of measure unit, page format and margins
  • Page header and footer management
  • Automatic page break
  • Automatic line break and text justification
  • Image support (JPEG and PNG)
  • Colors
  • Links
  • TrueType, Type1 and encoding support
  • Page compression

FPDF works for both PHP4 and PHP5 and doesn’t require you to install anything else (according to the author).

If you have used FPDF, please feel free to share your experience with us here on the comments section. To know more and download FPDF, go to their site here.

There is also a JAVA alternative, called iText. I’ve heard of iText a couple of years ago and it was still under heavy development at that time. I’m not sure how it is now, but if you want to give it a try, iText project site is located here.

Comments are closed.

Share via
Copy link