PHP code example of koerel / pdfunite

1. Go to this page and download the library: Download koerel/pdfunite library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

koerel / pdfunite example snippets

pdf
$unite = new Koerel\PdfUnite\PdfUnite();
$pdfData = $unite->join('file1.pdf', 'file2.pdf', 'output.pdf')->output();
pdf
$unite = new Koerel\PdfUnite\PdfUnite();
$unite->join('file1.pdf', 'file2.pdf', 'output.pdf')->download();