php-pdf-merge
php-pdf-merge copied to clipboard
Problem with pdf version >=1.4
Hi , sorry fo english , when i try to merge file with 1.4 version i have an exception :
Unknown HTTP status code provided with no message: 267
The free version of one of the dependancies FPDI only allows processing PDF files up to version 1.4. You can use GHOSTSCRIPT to convert any PDF file to version 1.4 before processing it with FPDI.
$gsCmd = 'gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -sOutputFile="' . $newFile . '" "' . $currentFile . '"';
exec($gsCmd);