Closed casperbrike closed 1 year ago
Thanks for the report and the PDF! I can reproduce the problem.
The problem is that the PDF is not following the PDF standard in that a font data structure is missing a required key. This leads to the problem that the automatic mapping of data structure to HexaPDF class cannot be done. And that leads to the error.
I will see how this problem can be worked around.
Great, thank you very much!
@casperbrike Sorry for the long wait! The next version of HexaPDF will have a fix for this so that the automatic type mapping works correctly in such problematic cases.
@casperbrike Sorry for the long wait! The next version of HexaPDF will have a fix for this so that the automatic type mapping works correctly in such problematic cases.
Thank you very much!
Greetings!
I'm trying to read text from PDF with HexaPDF (v0.32.0) using the following code:
It works great for most of the cases but sometimes it gives
undefined method 'glyph_scaling_factor'
error (attached PDF as an example).Do you have any suggestions on how we can resolve the issue?