I have a web application where user can maintain .docx files.
User can upload a .docx file which is saved using the Multipart in Java Spring. To display the uploaded file contents in frontend which uses Angular, the content is converted into html and is used as a string type. User can make changes in the application and I need to convert the HTML string content back to saveable byte array. The content has to be downloadable as .docx file aswell.
Does anybody have any experience with this kind of conversion. Are there any libraries that I can use for this?
I tried the docx4 library but it had trouble parsing tables. I've alos use the Apache POi options but I didn't find a way how can I maintain the proper format in the .docx file. It just saved it as plain text.