boazsegev / combine_pdf

A Pure ruby library to merge PDF files, number pages and maybe more...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SystemStackError: stack level too deep for docx file

nfedyashev opened this issue · comments

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

Hi @boazsegev,

same issue but with some pdf files, any ideas?

Thanks