gettalong / hexapdf

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

Can't serialize special floating point number NaN #234

Closed earthlingworks closed 1 year ago

earthlingworks commented 1 year ago

We ran into an issue with another PDF when flattening. I'll send in the PDF through email...script to reproduce below.

Error: HexaPDF::Error: Can't serialize special floating point number NaN

require 'hexapdf'
​
document = HexaPDF::Document.open(ARGV[0])
document.pages.each { |page| page.flatten_annotations }
gettalong commented 1 year ago

Thanks for reporting the bug - I can reproduce it and will fix it.

earthlingworks commented 1 year ago

Great, thanks!

gettalong commented 1 year ago

This is fixed and will be in the next release.