I'm trying to get the font size or format (bold etc.) of a specific text or line from a pdf file, but without any success until now.

Using the PDFTextStripper like below will only get the plain text
Java Code:
PDFTextStripper stripper = new PDFTextStripper();
String actualText = stripper.getText(actualDoc);
Can you, please, help me with this?