harshankur / officeParser

A Node.js library to parse text out of any office file. Currently supports docx, pptx, xlsx and odt, odp, ods..
MIT License
123 stars 17 forks source link

(Bug) Cannot convert object to primitive value #15

Closed danielciuca closed 10 months ago

danielciuca commented 1 year ago

Hi, I have a problem when I parse some excel files. I get this error:

TypeError: Cannot convert object to primitive value
    at Array.join

from

D:\...\files\node_modules\officeparser\officeParser.js:355
            return callback(responseText.join(" "), undefined);

This does not happen for all files, maybe only for very large ones?

harshankur commented 10 months ago

Hi @danielciuca , I have updated officeParser to version 4.0.4 where I have addressed the content extraction method which must have fixed this issue. Can you check if this problem still exists? If yes, please reopen this issue and please share your file (anonymized, if possible) with me to help me debug it.