Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Support Office documents #10

Open
scambier opened this issue Jan 23, 2023 · 2 comments
Open

[Feature request] Support Office documents #10

scambier opened this issue Jan 23, 2023 · 2 comments

Comments

@scambier
Copy link
Owner

Is your feature request related to a problem? Please describe.

Support Office documents like docx, .pptx, .xlsx

@khesed
Copy link

khesed commented Aug 2, 2023

I think there are at least two approach options. The first could be converting docx, pptx, and xlsx files to images for each slide/page and then use OCR on that. This could be done with the unoconv library.

The second could be using an interface that exposes the internal data of those filetypes, like the python-pptx library. This would be more akin to just extending the search function of Obsidian in general, which may be out of the scope of the project and more in the scope of the Omnisearch plugin. So, I think the first approach might be more reasonable for this project.

@khesed
Copy link

khesed commented Aug 5, 2023

For the second approach, there are some individual libraries in pure JS for each file extension which expose internal data, like js-pptx and js-ppt.

And there are ones which try to do it all, like any-text, but then it's needed to dig through the dependencies to see if it's really pure JS.

I guess another approach could be finding Office document converters to other extensions, then interpreting that. e.g. This pptx-to-html converter could be another option.

Would love to hear your thoughts on which might be more feasible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants