I am using apache POI to read excel document. At the very least, it can serve my purpose for the moment. But one thing that amazes me is retrieving the cell value as HTML.
I have one cell in which the user enters some string and applies some formatting (e.g. bullets / numbers / bold / italic) , etc.
SO, when I read it, the content should be in HTML format, and not in the simple line format specified by the POI.
I almost went through the entire POI API, but could not find anyone. I want to stay formatting only one column, not the whole excel. By column, I mean the text that is entered into this column. I want the text to be HTML text.
Studied and used by Apache Tika . However, as I understand it, it can only get text, but not text formatting.
Please help me. I'm running out of options.
Suppose I wrote My name Angel and Demon in Excel.
The output I have to get in Java is My name is <b>Angel</b> and <i>Demon</i>
source share