gettalong / hexapdf

Versatile PDF creation and manipulation for Ruby
https://hexapdf.gettalong.org
Other
1.21k stars 69 forks source link

Invalid index into object stream given (ArgumentError) #246

Closed earthlingworks closed 1 year ago

earthlingworks commented 1 year ago

Hi Thomas! Hope all is well :)

We have an issue with some PDFs. Error: Invalid index into object stream given (ArgumentError)

Will send the PDF in a separate email.

Script to reproduce:


​
path = 'output.pdf'
​
document = HexaPDF::Document.open(ARGV[0])
​
document.write(path, validate: false, optimize: true)
​
document2 = HexaPDF::Document.open(path)```
gettalong commented 1 year ago

I can reproduce the problem and I found the bug responsible for this.

gettalong commented 1 year ago

Fixed with the new release 0.32.2!

earthlingworks commented 1 year ago

Excellent - thank you!