1. Go to this page and download the library: Download webstack/qpdf 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/ */
webstack / qpdf example snippets
use Webstack\QPDF\QPDF;
File('input-1.pdf')
->addFile('input-2.pdf')
->write('output.pdf');
use Webstack\QPDF\QPDF;
Pages('input-1.pdf', '1-3')
->addPages('input-2.pdf', '4,5')
->write('output.pdf');
use Webstack\QPDF\QPDF;
File('input-1.pdf')
->addFile('input-2.pdf')
->output();
use Webstack\QPDF\QPDF;
berOfPages('input-1.pdf');