Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Latest commit

 

History

History
executable file
·
22 lines (13 loc) · 585 Bytes

README.md

File metadata and controls

executable file
·
22 lines (13 loc) · 585 Bytes

#PDFMerger for PHP (PHP 5/Laravel Compatible)

Original written by http://pdfmerger.codeplex.com/team/view port to PHP 5 by https://github.com/myokyawhtun/PDFMerger

Laravel Compatible

I have made some changes to make PHPMerger compatible for Laravel 4

Example Usage

$pdf = new \PDFMerger;

$pdf->addPDF('samplepdfs/one.pdf', '1, 3, 4');
$pdf->addPDF('samplepdfs/two.pdf', '1-2');
$pdf->addPDF('samplepdfs/three.pdf', 'all');


$pdf->merge('file', 'samplepdfs/TEST2.pdf'); 
    
// REPLACE 'file' WITH 'browser', 'download', 'string', or 'file' for output options