PHPKB Knowledge Base Software Knowledge Base Software Demo Buy PHPKB Software 
PHPKB Knowledge Base Software Knowledge Management Software  
Knowledge Base Home Knowledge Base Home | Knowledge Base Glossary Glossary | Contact Us Contact Us
Home > All Categories > Computers & Information Technology > Software
Title

Generate PDF with PHP - Create Dynamic PDF Files in PHP

Do you want to create PDF Files dynamically in PHP online for your commercial software? Now you can do it with FPDF class library. FPDF is a PHP class which allows to generate PDF files with pure PHP without depending on external library such as PDFlib.

What?s wrong with PDFlib? well for starters, PDFlib support need to be compiled in the php to make it work, secondly PDFlib isn?t free software meaning that you need to buy a separate license if you with to use PDFlib to generate pdf docs for your commercial apps and business. On the other hand, though not stated in a formal form, FPDF is freely distributable with or without modification and there are no restriction on the use of FPDF class library.

Generate PDF files in PHP

There is another library which is commonly use with PHP, cpdf. Though seems interesting, cpdf only allows the use of it?s library for non-commercial purpose without license, thus it is not a ?Free Software? and conflicted with OSI definition of ?Open Source?.

Being a pure PHP implementation, FPDF suffers from the lack speed of PDFlib, but the performance degradation won?t be noticeable unless you are planning to generate a large pdf files. FPDF library has been ported to other languages like Ruby, PHP and and C++ as there?s no restriction imposed on it.

Here?s a link to those who are interested to use FPDF in their projects http://www.fpdf.org

HTML to PDF Conversion in PHP

The html2pdf PHP class, which allows one-click conversion of HTML or XHTML to PDF. It is an extension of FPDF class mentioned above which is the most serious opensource implementation of the pdf format in PHP. We've found some scripts those seem to do quite a good job and they are mentioned below. They are all html2pdf conversion scripts.

  1. html2ps and html2pdf
  2. html2pdf - convert your XHTML to PDF easily
  3. HTML to PDF conversion script
A total of 230 users are reading this article.
Posted by: Administrator This question has been viewed 26937 times so far.

Want More?
Would you like to be notified when new articles are added to our knowledgebase? Subscribe to our Feed and get instant notifications when new articles are added to the knowledgebase.

Click Here to view all the questions in the Software category.
Attachments File Attachments
There are no files attached to this question/article.
How helpful was this article to you?
User Comments User Comments Add Comment
User Comment email@no-spam.com on Tue, Jun 26th, 2007 at 4:37 AM
Thanks a lot for the information. I was looking for a way to generate PDF files on the fly with PHP and this class serves the purpose very well.
Related Questions Related General Knowledge Questions
  1. Firefox 4.0 to be released in Final Quarter of 2010
  2. Microsoft Excel Shortcut Keys
  3. 13 Killer Excel 2007 Shortcuts
  4. Why Google has released Google Chrome browser?
  5. Google Chrome - Web Browser by Google | Google Chrome Browser
  6. Internet Explorer 8 - IE8 is Now Live
  7. How to enable Mod Rewrite module in XAMPP
  8. Free Screen Recording Software - Screen Video Recording
  9. GMail Drive
Information Additional Information
Article Number: 355
Created: 2007-06-26 3:45 AM
Rating: 4 Stars
 
options Article Options
Email to Friend
Export to PDF format Export to PDF File
del.icio.us Bookmark del.icio.us Bookmark
Reditt Bookmark Reditt Bookmark
Digg Bookmark Digg Bookmark
Stumble Stumble It
Subscribe to Article
Twitter
Feedburner Stay Informed by Email
 
Resources Useful Links
 

Related Firefox 4.0 to be released in Final Quarter of 2010

Related Microsoft Excel Shortcut Keys

Related 13 Killer Excel 2007 Shortcuts

Related Why Google has released Google Chrome browser?

Related Google Chrome - Web Browser by Google | Google Chrome Browser

Related Internet Explorer 8 - IE8 is Now Live

Related How to enable Mod Rewrite module in XAMPP

Related Free Screen Recording Software - Screen Video Recording

Related GMail Drive

Search Knowledge Base Search Knowledge Base
 
 

Powered by PHPKB Knowledge Base Software