I have been playing around with PdfBox and PDFTextStripperByArea method.
I was able to extract information if the text is bold or italic, b
As far as I have understood the pdfbox, there is no option by which you can read underline. Maybe you can try itextpdf for this purpose.