holacliente/pdfmerger
Composer 安装命令:
composer require holacliente/pdfmerger
包简介
PDFMerger for PHP (PHP 5 and up to PHP 7.1 Compatible)
README 文档
README
#PDFMerger for PHP (PHP 5 and above up to PHP 7.1 Compatible)
PDFMerger created by Jarrod Nettles December 2009 jarrod@squarecrow.com
Updated by Vasiliy Zaytsev February 2016 vasiliy.zaytsev@ffwagency.com
- Uses tcpdf 6.2.12 by Nicola Asuni
- Uses patched tcpdi_parser 1.0 by Paul Nicholls with own TCPdiParserException
- Uses TCPDI 1.0 by Paul Nicholls with FPDF_TPL extension 1.2.3 by Setasign
PHP 5 Compatible
I have made some changes in original codes to make PHPMerger compatible for PHP 5.
- Update
I tested with PHP 7.1 on my local machine and it still works.
Support of PDF 1.5 and PDF 1.6
FPDF and FPDI libraries replaced by TCPDF with TCPDI extension and parser.
PHP 7.3+ Compatible
Remove {$i} expressions to [$i] Fix TCPDF expressions deprecated Fix TCPDI expressions deprecated
Example Usage
include 'PDFMerger.php'; $pdf = new PDFMerger; // or use $pdf = new \PDFMerger; for Laravel $pdf->addPDF('samplepdfs/one.pdf', '1, 3, 4'); $pdf->addPDF('samplepdfs/two.pdf', '1-2'); $pdf->addPDF('samplepdfs/three.pdf', 'all'); $pdf->merge('file', 'samplepdfs/TEST2.pdf'); // generate the file $pdf->merge('download', 'samplepdfs/test.pdf'); // force download // REPLACE 'file' WITH 'browser', 'download', 'string', or 'file' for output options
holacliente/pdfmerger 适用场景与选型建议
holacliente/pdfmerger 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 175 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 06 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 holacliente/pdfmerger 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 holacliente/pdfmerger 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 175
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2025-06-08