Webklex / laravel-pdfmerger

A FPDI PDF Wrapper for Laravel which includes the "merge" functionality
MIT License
124 stars 52 forks source link

Getting error while merging PDF #30

Open aniketkhadye25 opened 2 years ago

aniketkhadye25 commented 2 years ago

Getting below mentioned error while merging pdf files

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)

Need input on this

ManuDoni commented 1 year ago

I post a late response here because I got the same error, maybe I can help someone else. This is what i found on https://www.setasign.com/support/faq/fpdi/error-document-compression-technique-not-supported/#question-89:

Error: "This PDF document probably uses a compression technique which is not supported by the free parser shipped with FPDI."

By default FPDI can "only" handle PDF documents with a normal cross-reference which was the default way to store object offsets in a PDF document up to PDF version 1.4. Beginning with PDF version 1.5 there were new compression features introduced which involve internal structure changes how a PDF document can be created.

We offer a commercial addon which enables FPDI to handle documents that uses these compression features.

Alternatively the document you're trying to import has to be resaved without the use of compressed cross-reference streams and objects by an external programm (e.g. by lowering the PDF version to 1.4).

larylinz commented 4 months ago

Does this package work together with the commercial addon? It doesn't do it out of the box in mine. installed pdf-parser 2.0.7 @ManuDoni are you using the commercial addon with this package?

ManuDoni commented 4 months ago

I'm sorry, but I don't know. I haven't used the commercial add-on.

larylinz commented 4 months ago

how did you solve the isue? Merging compressed pdfs.