singularity/pdf-merger

1.0.2 2020-03-12 11:42 UTC

This package is not auto-updated.

Last update: 2024-09-21 07:48:23 UTC


README

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

安装

安装此扩展的首选方式是通过 composer.

运行以下命令之一:

$ composer require singularity/pdf-merger:~1.0

或将以下内容添加到您的 composer.json 文件的 require 部分:

"singularity/pdf-merger": "~1.0"

用法

include 'PDFMerger.php';

$pdf = new PDFMerger;

$pdf->addPDF('samplepdfs/one.pdf', '1, 3, 4') specific pages
	->addPDF('samplepdfs/two.pdf', '1-2') range of pages
	->addPDF('samplepdfs/three.pdf', 'all') all pages
	->merge('file', 'samplepdfs/TEST2.pdf');

//REPLACE 'file' WITH 'browser', 'download', 'string', or 'file' for output options
//You do not need to give a file path for browser, string, or download - just the name.

贡献

有关详细信息,请参阅 CONTRIBUTING

鸣谢

许可

BSD 许可证 (BSD)。有关更多信息,请参阅 许可文件


#InventTomorrow
www.singularity.is