singularity/pdf-merger

1.0.2 2020-03-12 11:42 UTC

This package is not auto-updated.

Last update: 2024-05-18 06:20:15 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.

687474703a2f2f7777772e67726176617461722e636f6d2f6176617461722f38363633643438656136303933643263653931373231376365656361316363322e706e67
#InventTomorrow
www.singularity.is