singularity / pdf-merger
PDF merger
Installs: 1 638
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- setasign/fpdf: ^1.8
- setasign/fpdi: ^2.2
This package is not auto-updated.
Last update: 2024-11-16 08:34:13 UTC
README
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