102
Apache POI Word Style
To set text’s style, font, alignment etc, Apache POI provides methods such as setItalic(), setBold() etc. These methods are useful and can be used in Java program to handle word document.
Lets see an example in which we are creating a paragraph and setting it as bold and italic.
Apache POI Word Styling Example
Output:
Next TopicApache POI Word Aligning