garsaud/tcpdf_using_streams 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固