jurosh/pdf-merge
最新稳定版本:2.1.0
Composer 安装命令:
composer require jurosh/pdf-merge
包简介
PHP PDF Merger
README 文档
README
PDF Merge library for PHP.
Install with composer:
composer require jurosh/pdf-merge
Should add dependency:
"jurosh/pdf-merge": "^2.0"
Highlights
Pdf merging with modes portrait/landscape.
Tested in Laravel4 & Laravel5 framework (but still can be used without any framework as standalone utility).
Usage
// Autoload composer classses... // and now we can use library $pdf = new \Jurosh\PDFMerge\PDFMerger; // add as many pdfs as you want $pdf->addPDF('path/to/source/file.pdf', 'all', 'vertical') ->addPDF('path/to/source/file1.pdf', 'all') ->addPDF('path/to/source/file2.pdf', 'all', 'horizontal'); // call merge, output format `file` $pdf->merge('file', 'path/to/export/dir/file.pdf');
That's it!
Enjoy and leave star if you like it :)
统计信息
- 总下载量: 2.02M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 154
- 点击次数: 1
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-11-15