Quantcast
Channel: Java Programming Forum - Learn Java Programming - Apache POI
Viewing all articles
Browse latest Browse all 120

PDFbox - get line or text font size/format

$
0
0
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
Code:

PDFTextStripper stripper = new PDFTextStripper();
String actualText = stripper.getText(actualDoc);

Can you, please, help me with this?
thanks.

Viewing all articles
Browse latest Browse all 120

Trending Articles