gettalong / hexapdf

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

Problem while decoding Flate encoded stream: incorrect header check (HexaPDF::FilterError) #241

Closed earthlingworks closed 1 year ago

earthlingworks commented 1 year ago

Hey Thomas, looks like I forgot to submit this one from a couple of weeks ago. I'll email in the specific PDF - thanks!

Error: Problem while decoding Flate encoded stream: incorrect header check (HexaPDF::FilterError)

Script to reproduce:


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

Thanks - I will have a look at it!

gettalong commented 1 year ago

@earthlingworks I ran you script with the PDF you sent with HexaPDF 0.32.0 but no error was thrown. Which version of HexaPDF were you testing with?

earthlingworks commented 1 year ago

Huh, might be on an older version. I'll ask the team to check with the latest version and will follow up. Thanks!

earthlingworks commented 1 year ago

Ok, following up here: yep, looks like we're all set and everything works with the latest version. Thank you!

gettalong commented 1 year ago

Perfect, thanks for getting back to me.