Getting text style from docx using Apache poi

后端 未结 6 1557
清酒与你
清酒与你 2021-01-14 02:41

I\'m trying to get the style information from an MS docx file, I have no problem writing file content with added styles like bold, italic. font size etc, but reading the fil

6条回答
  •  滥情空心
    2021-01-14 03:15

    This is the simple trick to get the bold property.

    run.getCTR().xmlText().contains("") return true if bold otherwise false.

提交回复
热议问题