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

reading the file from the buffer #13

Closed bigansh closed 1 year ago

bigansh commented 1 year ago

how to i directly read the file from the buffer? i have the file buffer stored in the memory and want to use officePartser to directly read the file from that buffer.

harshankur commented 1 year ago

I can add it as a feature to accept file buffer as a parameter similar to file path. But in the meantime, you can write the buffer to a temp local file using fs and use that to read from officeParser. Let me know if that does not work.

bigansh commented 1 year ago

i can do that. just wanted to know if it is currently possible. and please, do add that feature. it would mean so much.

bigansh commented 1 year ago

time lagega kya isme? bahot time lagega toh phir mai fs wala solution implement kar deta hu. otherwise i can wait.

harshankur commented 1 year ago

Zyada nahi lagega. But max ye weekend tak toh lag sakta hai when I have time to work on this.

bigansh commented 1 year ago

Cool. no issues. I will wait. thanks bud!

harshankur commented 1 year ago

@bigansh Your request changes are now available.

bigansh commented 1 year ago

thank you very much sir!