承接 garsaud/tcpdf_using_streams 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

https://github.com/tecnickcom/TCPDF

统计信息

  • 总下载量: 42
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1591
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-only
  • 更新时间: 2023-02-22