boazsegev / combine_pdf

A Pure ruby library to merge PDF files, number pages and maybe more...
MIT License
731 stars 152 forks source link

SystemStackError: stack level too deep for docx file #214

Open nfedyashev opened 2 years ago

nfedyashev commented 2 years ago

Hello,

I have been using combine_pdf for quite some time and it worked great. And recently I've found a valid docx file which seems to break CombinePDF parser, it goes into SystemStackError. I wasn't able to fully figure out how this docx file is different than all the others docx files(which don't have any parsing issues).

CombinePDF.parse(file.read, allow_optional_content: true)

Any hints or ideas are greatly appreciated.

combine_pdf_issue_213.docx

MatteoVella commented 5 months ago

Hi @boazsegev,

same issue but with some pdf files, any ideas?

Thanks