You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
queryObject(j) throws an error because j is a number representing the items position in the map that is getting created during the parsing but the unicodeArray is usually just a length of 1 where my pdfs are hitting this code. So using j tries to pull an index in the array that doesn't exist.
I was able to fix the issue by changing things thusly:
When using the sample for extracting text, I kept getting an error in the font-decoding.js code. The issue is on line 76:
queryObject(j)
throws an error becausej
is a number representing the items position in the map that is getting created during the parsing but the unicodeArray is usually just a length of 1 where my pdfs are hitting this code. So usingj
tries to pull an index in the array that doesn't exist.I was able to fix the issue by changing things thusly:
becomes ...
The text was updated successfully, but these errors were encountered: