garsaud/tcpdf_using_streams
最新稳定版本:6.6.2
Composer 安装命令:
composer require garsaud/tcpdf_using_streams
包简介
Fork of the official TCPDF lib, but using PHP resources instead of in-memory buffer
README 文档
README
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
composer require garsaud/tcpdf_using_streams
# instead of composer require tecnickcom/tcpdf
Usage
$pdf = new TCPDF(); // various modifications... $stream = $pdf->Output('STREAM'); echo get_resource_type($stream); // "stream"
The original library
统计信息
- 总下载量: 42
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-only
- 更新时间: 2023-02-22