TCPDF: a PHP library to convert web pages to PDF
Today we talk about software that carries on his shoulders 8 years of programming and mature to the point to be used as default in Joomla, one of the main CMS open source used today by millions of satisfied users around the world.
People used to working with Joomla surely know icons that (unless they are disabled from the theme in use) appear aligned on the right of each title Articles. Usually if I see three: “PDF“, “Print” and “Send to a friend“. The report below.
The icon “Send to a friend” does nothing send the link to the email address news that will put, l’icona “Print” open a page formatted correctly for printing, while the icon “PDF” allow download in PDF format Article. The icon “PDF” I have always intrigued me and so I investigated a bit '.
To export PDF Joomla leans to PHP class call “TCPDF“. The project “TCPDF” was born in 2002 and is now being used by million people worldwide, also thanks to the popularity that Joomla has helped to build. The software is released under open source license, and that is why it is distributed as an integral package of Joomla. From the benefits indicated by site (The Lunga list) we can mention:
- requires no libraries external to the operation,
- supports i charset “UTF-8“, “Unicode” and “Right-to-left” (scrittura araba),
- supports native image formats JPG, PNG and SVG, also when used with GD or ImageMagick supports the formats supported by these,
- supports modes “Grayscale“, “RGB“, “CYMK“, “Spot colors” e the transparencies,
To see some example of the operation refer to page “demo” the official site.
In conclusion TCPDF is a software in my opinion not always useful. Often in personal sites (but it also happens in those professional) it tends to include any type of content, even the less useful as counter accessi, persone online the surveys of all kinds. Keep in mind that this information will not serve almost never users, then let us ask ourselves the question whether to include the contents between TCPDF or if it can be considered a finesse for a few.