I have been playing around with PdfBox and PDFTextStripperByArea method.
I was able to extract information if the text is bold or italic, b
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.
STYLE_UNDERLINE