5 ms·
nice - did you write a custom parser for PDF/DOCX? we wrote one for XLSX after running into event loop issues with sheet JS
by andrewlu0 3mo ago
nice - did you write a custom parser for PDF/DOCX? we wrote one for XLSX after running into event loop issues with sheet JS
- dvt 3mo agoUsing lopdf[1] for PDF parsing, rtf-parser[2] for RTF, calamine[3] for XLSX, and I'm sure you know that DOCX/PPTX/etc. is basically just a zip file of XML + text. The LLM cares about textual data (which just gets moderately cleaned up post-extraction), so I (thankfully) didn't have to deal with rendering. But showing a preview or end-result to a user would be a huge plus, so I can see myself using your library. [1] https://github.com/J-F-Liu/lopdf https://github.com/J-F-Liu/lopdf [2] https://github.com/d0rianb/rtf-parser https://github.com/d0rianb/rtf-parser [3] https://github.com/tafia/calamine https://github.com/tafia/calamine
- petilon 3mo agoWhat about rendering? That's the hard part.
- dvt 3mo agoFor me, rendering was just a nice-to-have.
- petilon 3mo agoSorry I meant to ask the author of Extend UI not you.
- andrewlu0 3mo agowe built a library @extend-ai/react-xlsx on top of it that renders the parsed contents onto a canvas testing was mostly manual with a test corpus we generated. its not perfect but its pretty close for most files we've seen
- nhatcher 3mo agoFirst of all thanks for the great library. It is so much more thay an UI kit! We wrote (should say are writing) our own xlsx parser in Rust on IronCalc: https://github.com/ironcalc/IronCalc/tree/main/xlsx https://github.com/ironcalc/IronCalc/tree/main/xlsx