I know, that HWPF has this feature, but I can't find any simular in XWPF.
Maybe there are workarounds for solving this problem. If you know some, please share with me.
Thanks in advance!
I know, that HWPF has this feature, but I can't find any simular in XWPF.
Maybe there are workarounds for solving this problem. If you know some, please share with me.
Thanks in advance!
In Word Office OpenXML the automatic hyphenation settings are set for the whole document and may be suppressed for single paragraphs. The settings for the whole document are in
/word/settings.xml
part of the package. This is XWPFSettings but it is not possible to get this using the high level objects ofapache poi
until now. So we need using low level objects and reflection to get this and having access to CTSettings.addNewAutoHyphenation.The possible suppressing of automatic hyphenation for single paragraphs is done in CTPPrBase.addNewSuppressAutoHyphens and is also not get-able using high level
apache poi
.Example: