![]() ![]() $newPdf->renderFile($mergedPdfPath = "$newTmpPath. $cmd = "/usr/bin/gs -q -dNOPAUSE -dBATCH -dCompatibilityLevel=1.4 -sDEVICE=pdfwrite -sOutputFile=$outputFileName" įoreach ($this->getDocumentsPaths() as $pdfpath) ![]() merge files and save resulting file as PDF version 1.4 for FPDI compatibility $outputFileName = tempnam(sys_get_temp_dir(), 'merged') Here's our class excerpt: class MergedPDF extends \FPDI We don't know yet how it would work with some advanced formatted pdfs, but for scans we use it works just fine. So we've decided to use Ghostscript solution as in Chauhan's answer.īut then we got some strange metadata in the output PDF properties.įinally we've decided to join two solutions to get PDF's merged and downgraded by Ghostscript, but the metadata is set by FPDI. However, it turned out that some of the documents scanned by our office copier were having malformed indexes, which crashed the commercial FPDI add-on. We've decided to evaluate the FPDI commercial add-on. However, the input PDF's we've been using could be in version higher than 1.7. Tarro - File Splitter
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |