PHPackages                             garsaud/tcpdf\_using\_streams - 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. garsaud/tcpdf\_using\_streams

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

garsaud/tcpdf\_using\_streams
=============================

Fork of the official TCPDF lib, but using PHP resources instead of in-memory buffer

6.6.2(3y ago)042LGPL-3.0-onlyPHPPHP &gt;=5.3.0

Since Feb 21Pushed 3y agoCompare

[ Source](https://github.com/garsaud/TCPDF_using_streams)[ Packagist](https://packagist.org/packages/garsaud/tcpdf_using_streams)[ Docs](http://www.tcpdf.org/)[ Fund](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&currency_code=GBP&business=paypal@tecnick.com&item_name=donation%20for%20tcpdf%20project)[ RSS](/packages/garsaud-tcpdf-using-streams/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (3)Used By (0)

TCPDF using streams
===================

[](#tcpdf-using-streams)

[TCPDF](https://github.com/tecnickcom/TCPDF) is a good library for generating small PDFs on the fly. However, the page and file content buffers are stored in RAM through variables, which makes the library unsuitable for heavy processing. It is often necessary to increase the PHP memory limit to avoid exceeding it.

This is fixed in this fork. Storing the file and pages in variables is replaced with writing into stream (through the `php://temp` mechanism, which automatically decides to use RAM or a file). It is now possible to write very large PDF files, save them and display the content, without impacting memory.

Installing
----------

[](#installing)

```
composer require garsaud/tcpdf_using_streams
# instead of composer require tecnickcom/tcpdf
```

Usage
-----

[](#usage)

```
$pdf = new TCPDF();

// various modifications...

$stream = $pdf->Output('STREAM');

echo get_resource_type($stream); // "stream"
```

The original library
--------------------

[](#the-original-library)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75.9% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1227d ago

### Community

Maintainers

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

---

Top Contributors

[![nicolaasuni](https://avatars.githubusercontent.com/u/1186996?v=4)](https://github.com/nicolaasuni "nicolaasuni (271 commits)")[![williamdes](https://avatars.githubusercontent.com/u/7784660?v=4)](https://github.com/williamdes "williamdes (11 commits)")[![garsaud](https://avatars.githubusercontent.com/u/3667366?v=4)](https://github.com/garsaud "garsaud (9 commits)")[![remicollet](https://avatars.githubusercontent.com/u/270445?v=4)](https://github.com/remicollet "remicollet (5 commits)")[![rvanginneken](https://avatars.githubusercontent.com/u/2691312?v=4)](https://github.com/rvanginneken "rvanginneken (5 commits)")[![NiklasBr](https://avatars.githubusercontent.com/u/279826?v=4)](https://github.com/NiklasBr "NiklasBr (4 commits)")[![mvorisek](https://avatars.githubusercontent.com/u/2228672?v=4)](https://github.com/mvorisek "mvorisek (4 commits)")[![cedric-anne](https://avatars.githubusercontent.com/u/33253653?v=4)](https://github.com/cedric-anne "cedric-anne (4 commits)")[![DominiqueFERET](https://avatars.githubusercontent.com/u/7206135?v=4)](https://github.com/DominiqueFERET "DominiqueFERET (4 commits)")[![defrance](https://avatars.githubusercontent.com/u/1179011?v=4)](https://github.com/defrance "defrance (3 commits)")[![nicolaasuni-vonage](https://avatars.githubusercontent.com/u/113166816?v=4)](https://github.com/nicolaasuni-vonage "nicolaasuni-vonage (3 commits)")[![leofeyer](https://avatars.githubusercontent.com/u/1192057?v=4)](https://github.com/leofeyer "leofeyer (3 commits)")[![Jakuje](https://avatars.githubusercontent.com/u/2694489?v=4)](https://github.com/Jakuje "Jakuje (3 commits)")[![baptistepillot](https://avatars.githubusercontent.com/u/3451236?v=4)](https://github.com/baptistepillot "baptistepillot (2 commits)")[![Findus23](https://avatars.githubusercontent.com/u/6266037?v=4)](https://github.com/Findus23 "Findus23 (2 commits)")[![gemal](https://avatars.githubusercontent.com/u/69105?v=4)](https://github.com/gemal "gemal (2 commits)")[![jausions](https://avatars.githubusercontent.com/u/271436?v=4)](https://github.com/jausions "jausions (2 commits)")[![jonasnutz](https://avatars.githubusercontent.com/u/43745345?v=4)](https://github.com/jonasnutz "jonasnutz (2 commits)")[![paulholden](https://avatars.githubusercontent.com/u/1126541?v=4)](https://github.com/paulholden "paulholden (2 commits)")[![stchr](https://avatars.githubusercontent.com/u/166079?v=4)](https://github.com/stchr "stchr (2 commits)")

---

Tags

qrcodepdfTCPDFPDFD32000-2008datamatrixpdf417barcodes

### Embed Badge

![Health badge](/badges/garsaud-tcpdf-using-streams/health.svg)

```
[![Health](https://phpackages.com/badges/garsaud-tcpdf-using-streams/health.svg)](https://phpackages.com/packages/garsaud-tcpdf-using-streams)
```

###  Alternatives

[tecnickcom/tcpdf

Deprecated legacy PDF engine for PHP. Use instead tecnickcom/tc-lib-pdf.

4.5k109.8M577](/packages/tecnickcom-tcpdf)

PHPackages © 2026

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