PHPackages                             psyipm/zf-tcpdf - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. psyipm/zf-tcpdf

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

psyipm/zf-tcpdf
===============

Zend module wrapper for tcpdf class created by Nicola Asuni. TCPDF is a PHP class for generating PDF files on-the-fly without requiring external extensions. This library includes also a class to extract data from existing PDF documents and classes to generate 1D and 2D barcodes in various formats.

028PHP

Since Oct 20Pushed 11y ago1 watchersCompare

[ Source](https://github.com/psyipm/zf-tcpdf)[ Packagist](https://packagist.org/packages/psyipm/zf-tcpdf)[ RSS](/packages/psyipm-zf-tcpdf/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#zf-tcpdf - Zend module wrapper for tcpdf class

\##Description: Zend module wrapper for tcpdf class created by Nicola Asuni. TCPDF is a PHP class for generating PDF files on-the-fly without requiring external extensions. This library includes also a class to extract data from existing PDF documents and classes to generate 1D and 2D barcodes in various formats.

Requirements
------------

[](#requirements)

- [Zend Framework 2](https://github.com/zendframework/zf2) (latest master).
- php &gt;=5.3.3

\####Version: 6.0.096 ####Release date: 2014-10-06 ####Author: Nicola Asuni

\####Copyright (c) 2002-2014:

- Nicola Asuni
- Tecnick.com LTD
- [www.tecnick.com](www.tecnick.com)

\####URLs:

-
-

\####Main 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 v1, TrueType, OpenType v1, Type1 and CID-0 fonts;
- font subsetting;
- methods to publish some XHTML + CSS code, Javascript and Forms;
- images, graphic (geometric figures) and transformation methods;
- supports JPEG, PNG and SVG images natively, all images supported by GD (GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM) and all images supported via ImagMagick (http: [www.imagemagick.org/www/formats.html](http://www.imagemagick.org/www/formats.html))
- 1D and 2D barcodes: CODE 39, ANSI MH10.8M-1983, USD-3, 3 of 9, CODE 93, USS-93, Standard 2 of 5, Interleaved 2 of 5, CODE 128 A/B/C, 2 and 5 Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI, POSTNET, PLANET, RMS4CC (Royal Mail 4-state Customer Code), CBC (Customer Bar Code), KIX (Klant index - Customer index), Intelligent Mail Barcode, Onecode, USPS-B-3200, CODABAR, CODE 11, PHARMACODE, PHARMACODE TWO-TRACKS, Datamatrix, QR-Code, PDF417;
- JPEG and PNG ICC profiles, 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, named destinations and table of content;
- text hyphenation;
- text stretching and spacing (tracking);
- automatic page break, line break and text alignments including justification;
- automatic page numbering and page groups;
- move and delete pages;
- page compression (requires php-zlib extension);
- XOBject Templates;
- Layers and object visibility.
- PDF/A-1b support.

\#Installation

1. Run: `php composer.phar require psyipm/zf-tcpdf:dev-master`
2. Add `TcPdf` to the enabled modules list in your application.config.php

\#Usage

```
$view = new ViewModel();

$renderer = $this->getServiceLocator()->get('Zend\View\Renderer\RendererInterface');
$view->setTemplate('test');
$html = $renderer->render($view);

$pdf = $this->serviceLocator->get('TcPdfService');

$pdf->writeHTML($html);

$pdf->lastPage();
$pdf->Output("pdf-name.pdf", 'I');
```

\#Documentation For more detailed instructions visit TCPDF developer website [tcpdf.org](http://www.tcpdf.org/index.php)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b43198c3736fbcbea2af66f85a02fcd498e485695e9dd6b2f0110026ab673192?d=identicon)[psyipm](/maintainers/psyipm)

---

Top Contributors

[![psyipm](https://avatars.githubusercontent.com/u/5435502?v=4)](https://github.com/psyipm "psyipm (5 commits)")

### Embed Badge

![Health badge](/badges/psyipm-zf-tcpdf/health.svg)

```
[![Health](https://phpackages.com/badges/psyipm-zf-tcpdf/health.svg)](https://phpackages.com/packages/psyipm-zf-tcpdf)
```

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.2k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M100](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M215](/packages/smalot-pdfparser)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.1k57.6M128](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
