boazsegev / combine_pdf

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

Swallow "index out of range" error #209

Open funkypierre opened 2 years ago

funkypierre commented 2 years ago

Personal response to https://github.com/boazsegev/combine_pdf/issues/205

Our clients are importing a lot of PDFs, so we needed a workaround for these "malformed" files. This quick fix is working for us, but feel free to inform me of any trouble it could cause in the future.

Not expecting you to merge it as well, I just wanted to propose this solution for people in the same context.