gzuncompress(): data error
kamran377 opened this issue · 1 comments
kamran377 commented
I am getting gzuncompress(): data error when trying to merge a file, I am just running the following code
$pdf = new \FPDM($contractPath); $pdf->Load($fields, false); // second parameter: false if field values are in ISO-8859-1, true if UTF-8 $pdf->Merge(); $pdf->Output();
It works fine with template.pdf but fails on my pdf file. Any ideas what might be the issue or cause of this error?
Aagsby commented
Hi @kamran377!
Try using pdftk as suggested in the readme. It solved the same problem for me.
pdftk sample.pdf output sample_fixed.pdf