Quantcast
Channel: Java Programming Forum - Learn Java Programming - Apache POI
Viewing all articles
Browse latest Browse all 120

How can I do to justify a text in a paragraph?

$
0
0
Good day.

I'm using Apache POI 3.15 version in order to create a Microsoft Word document in Java.
I cannot found a way in order to justify a text in a paragraph.
In XWPFParagraph class I found only BOTH (of ParagraphAlignment class), but with it, if the are a few words in a line it adds several spaces between the words and this is very wrong.
How can I do to make it?

Best regards.

Stefano Errani

Viewing all articles
Browse latest Browse all 120

Trending Articles