first commit
This commit is contained in:
12
modules/dpdpoland/libraries/PDFMerger/sample.php
Normal file
12
modules/dpdpoland/libraries/PDFMerger/sample.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
include 'PDFMerger.php';
|
||||
|
||||
$pdf = new PDFMerger;
|
||||
|
||||
$pdf->addPDF('samplepdfs/one.pdf', '1, 3, 4')
|
||||
->addPDF('samplepdfs/two.pdf', '1-2')
|
||||
->addPDF('samplepdfs/three.pdf', 'all')
|
||||
->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.
|
||||
Reference in New Issue
Block a user