PDF find out if text is underlined or a table cell

后端 未结 5 1888
遇见更好的自我
遇见更好的自我 2020-12-30 18:45

I have been playing around with PdfBox and PDFTextStripperByArea method.

I was able to extract information if the text is bold or italic, b

5条回答
  •  没有蜡笔的小新
    2020-12-30 19:38

    According to the api getfont() returns The font size.

    You can use getStyle() method and it will return STYLE_UNDERLINE for underlined font. Thus you can retrieve underline style.

提交回复
热议问题