You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$merger = new Merger();
/...
$merger->addFile($tmp_filename);
.../
$merged_file = $merger->merge();
And got the following Exception:
'This PDF document probably uses a compression technique which is not supported by the free parser shipped with FPDI. (See https://www.setasign.com/fpdi-pdf-parser for more details)'
Merging pdfs of version 1.5 and later
The default FPDI driver is not able handle compressed pdfs of version 1.5 or later. Circumvent this limitation by using the slightly more experimental TCPDI driver.
Known issues:
TCPDI (as used in the TcpdiDriver for merging pdfs with newer features) does not seem to be maintained. This makes mergeing fragile for certain kinds of files, and error messages are often all but helpful. This package will not be able to fix issues in TCPDI. The long term solution is to switch to a different backend. Suggestions are very welcomed!
Tried using $merger = new Merger(new TcpdiDriver());
But did not work.
$pdfMerger->addFile("archivo1.pdf");
$pdfMerger->addFile("archivo2.pdf");
$archivo = $pdfMerger->merge();
$pdfMerger->addFile($archivo);
The text was updated successfully, but these errors were encountered: