TCPDF is a PHP class for generating PDF documents without requiring external extensions. TCPDF Supports UTF-8, Unicode, RTL languages, XHTML, Javascript, digital signatures, barcodes and much more.

IMPORTANT:
This version will be soon marked as deprecated and replaced by a new version currently under development: https://github.com/tecnickcom/tc-lib-pdf

Features

  • no external libraries are required for the basic functions
  • all standard page formats, custom page formats, custom margins and units of measure
  • UTF-8 Unicode and Right-To-Left languages
  • TrueTypeUnicode, OpenTypeUnicode, TrueType, OpenType, Type1 and CID-0 fonts
  • font subsetting
  • methods to publish some XHTML code, Javascript and Forms
  • images, graphic (geometric figures) and transformation methods
  • 1D and 2D barcodes including QR-Code, Datamatrix and PDF417
  • Grayscale, RGB, CMYK, Spot Colors and Transparencies
  • automatic page header and footer management
  • document encryption up to 256 bit and digital signature certifications
  • transactions to UNDO commands
  • PDF annotations, including links, text and file attachments
  • text rendering modes (fill, stroke and clipping)
  • multiple columns mode
  • no-write page regions
  • bookmarks and table of content
  • text hyphenation
  • text stretching and spacing (kerning)
  • automatic page break, line break and text alignments including justification
  • automatic page numbering and page groups
  • move and delete pages
  • page compression
  • XObject Templates
  • PDF/A-1b (ISO 19005-1:2005) support

Project Samples

Project Activity

See All Activity >

License

GNU Library or Lesser General Public License version 3.0 (LGPLv3)

Follow TCPDF - PHP class for PDF

TCPDF - PHP class for PDF Web Site

Other Useful Business Software
AI-generated apps that pass security review Icon
AI-generated apps that pass security review

Stop waiting on engineering. Build production-ready internal tools with AI—on your company data, in your cloud.

Retool lets you generate dashboards, admin panels, and workflows directly on your data. Type something like “Build me a revenue dashboard on my Stripe data” and get a working app with security, permissions, and compliance built in from day one. Whether on our cloud or self-hosted, create the internal software your team needs without compromising enterprise standards or control.
Try Retool free
Rate This Project
Login To Rate This Project

User Ratings

★★★★★
★★★★
★★★
★★
117
4
1
0
8
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 3 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 3 / 5

User Reviews

  • an well balanced app I’ve used TCPDF in PHP projects to generate invoices, reports, and downloadable documents, and it’s a dependable library once you understand its structure. Being a pure PHP solution makes it easy to deploy without worrying about server-side dependencies. The library handles multilingual text, custom fonts, and page formatting quite well, which is useful for business documents. However, designing layouts can be tedious, especially if you’re coming from HTML/CSS-based PDF tools. The documentation exists, but it’s not always beginner-friendly. TCPDF works best for backend-driven PDF generation where control and stability matter more than visual design flexibility. It’s not modern or flashy,
  • It very useful for rapid web development. PDF generation on the site-server side is needed in many situations such as billing order generation for example. I'll check the new tc-lib-pdf when it'll be ready, as you advice.
  • Desenvolvi um editor de relatorios PDF para usar com a biblioteca TCPDF. Skype: cleidson_santos1 cleidsoncarneirodossantos@gmail.com
  • I use it to create labels from database data on a website. Works fine.
  • Very good
Read more reviews >

Additional Project Details

Languages

English

Intended Audience

Developers

Programming Language

PHP

Related Categories

PHP Printing Software, PHP Internet Software, PHP PDF Software, PHP Electronic Signature Software

Registered

2005-01-06