tc-lib-pdf composes a set of independently versioned Composer packages. Installing tecnickcom/tc-lib-pdf pulls the ones it needs; each can also be required on its own by a project that wants only that piece.
Every package targets PHP 8.2 or later, is published under LGPL-3.0-or-later, and has generated API reference under /docs/srcdoc/.
Document Generation
- tc-lib-pdf : the top-level library. Document authoring, text and HTML layout, page management, and PDF output. API reference · GitHub · Packagist
- tc-lib-pdf-page : page geometry, formats, margins, the five page boxes, page groups, and page-level attributes.
- tc-lib-pdf-graph : vector primitives, the graphics style stack, transformations, transparency, and shadings.
Text and Fonts
- tc-lib-pdf-font : font loading, parsing, subsetting, embedding, and the font data generation step. See also /docs/fonts/.
- tc-lib-unicode : Unicode string processing, the bidirectional algorithm (UAX #9), normalization, and Arabic shaping.
- tc-lib-unicode-data : the generated Unicode character data tables that
tc-lib-unicodereads.
Colour, Images, and Barcodes
- tc-lib-color : colour parsing and conversion across RGB, HSL, CMYK, Lab, grayscale, and spot colours, for both CSS and PDF output. One page per colour model, plus the notations the parser accepts and the 150 named colours.
- tc-lib-pdf-image : image loading, PNG and JPEG parsing, transparency and soft masks, ICC profiles, and embedding.
- tc-lib-barcode : 73 linear, postal, GS1, and two-dimensional barcode symbologies, rendered as PNG, SVG, HTML, or PDF operators. One page per symbology under Linear, 2D and Postal.
Reading, Encryption, and Signing
- tc-lib-pdf-parser : reads existing PDF files, for import and manipulation. See also /docs/pdf-import/.
- tc-lib-pdf-filter : PDF stream filters and predictors, used when decoding parsed content.
- tc-lib-pdf-encrypt : document encryption and permissions, from RC4-40 to AES-256 R6, including public-key recipients.
- tc-lib-pdf-sign : signature primitives (PKCS#7, CAdES, PAdES baseline), RFC 3161 timestamps, and LTV material. See also /docs/digital-signatures/.
Support
- tc-lib-file : file and data-URI helpers used internally for asset loading, with the local path and remote host allowlists. See also /docs/remote-resources/.
Quick Links
- Project overview: /
- Feature index: /features/
- Runnable examples: /examples/
- Guides: /docs/
- Generated API reference: /docs/srcdoc/