Closed Kleissner closed 4 years ago
@Kleissner Thanks for reporting. I think we actually fixed this recently in PR: #305 See https://github.com/unidoc/unipdf/pull/305/files#diff-548b62b50679e083838dc4638c51875fR307 The fix is on the development branch. Will be released in next release early next week. Would be great if you can test it. Otherwise would be great if you can submit a problematic file for checking.
Yep that PR fixes it. Closing this issue.
Description
We've experienced the following crash:
This seems to be the affected code:
https://github.com/unidoc/unipdf/blob/971a00f1eda292f1401813cf774ec163a52cbd65/extractor/text.go#L295-L297
Expected Behavior
It shouldn't crash.
If you need the PDF that triggers this crash let me know, but it would take me a couple of hours since I'd have to go manually through logs to find it..
Solution
Use type assertion check?
Interestingly, all the other cases in the switch statement are using the type assertion check, just this one isn't.