I have an application I’m writing which reads a docx file. It appears that I may need to read the formatting of the text, and not just the content. I have googled the matter but finding a search term that finds me what I’m looking for, most of it points me to using formatted text inputs and the like.
Does anyone know what class I should be using?
Apache poi should give you (at least some) access to Excel styles – such as colors, fonts etc. I’m not sure about exotic cases, but it’s certainly possible to obtain cell font color for example. The following code works for me: