Document-Archiver / com.sophisticatedapps.archiving.document-archiver

https://document-archiver.github.io/
Apache License 2.0
25 stars 4 forks source link

Ideas for implementing Word document (`.docx`) support #5

Closed Dansoftowner closed 3 years ago

Dansoftowner commented 3 years ago

Hi!

You mentioned in a previous issue that you are searching for a Word document displaying solution.

I can give you some thoughts on it :)

So, a word document can be converted to HTML. If you find a good 'docx to html' converter library, you can easily display the HTML in a JavaFX WebView.

Some sites that can be helpful:

Another solution can be a 'Word to image' converter library, and then display the images below each other (but that has a lot of disadvantages).

Hope it helps you moving forward!

Best regards Daniel

stephansann commented 3 years ago

Hi Daniel Thank you very much for the links. A few of them I already saw. The others I will read soon. I already had different ideas, like converting .docx-files into PDF. Problem is the most libraries I found were either commercial or terribly outdated / not maintained any more. Anyhow I will have a second look at the "to HTML" approach. Thanks again and best regards Stephan

stephansann commented 3 years ago

Added the Mammoth converter in version 1.5. Thanks again for the suggestion 🙏🏻

Dansoftowner commented 3 years ago

Wow, good job! @stephansann