singularity/pdf-merger

1.0.2 2020-03-12 11:42 UTC

This package is not auto-updated.

Last update: 2024-11-16 08:34:13 UTC


README

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

Installation

The preferred way to install this extension is through composer.

Either run

$ composer require singularity/pdf-merger:~1.0

or add

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

to the require section of your composer.json file.

Usage

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

Please see CONTRIBUTING for details.

Credits

License

The BSD License (BSD). Please see License File for more information.


#InventTomorrow
www.singularity.is