laravel-pdfmerger icon indicating copy to clipboard operation
laravel-pdfmerger copied to clipboard

Getting error while merging PDF

Open aniketkhadye25 opened this issue 2 years ago • 4 comments

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

aniketkhadye25 avatar Oct 06 '22 02:10 aniketkhadye25

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).

ManuDoni avatar Jul 20 '23 08:07 ManuDoni

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?

larylinz avatar Jun 19 '24 09:06 larylinz

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

ManuDoni avatar Jun 19 '24 17:06 ManuDoni

how did you solve the isue? Merging compressed pdfs.

larylinz avatar Jun 21 '24 06:06 larylinz