Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error while merging PDF #30

Open
aniketkhadye25 opened this issue Oct 6, 2022 · 4 comments
Open

Getting error while merging PDF #30

aniketkhadye25 opened this issue Oct 6, 2022 · 4 comments

Comments

@aniketkhadye25
Copy link

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 aniketkhadye25 changed the title getting error while merging PDF Getting error while merging PDF Oct 6, 2022
@ManuDoni
Copy link

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
Copy link

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
Copy link

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

@larylinz
Copy link

how did you solve the isue? Merging compressed pdfs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants