I would like to know how can I get back the font size of a Paragraph which is empty (ie. doesn’t contain anything). I can’t find any method which provides me such information.
I provide a file with an example of a line whom size is specific but remains empty.
Thank you in advance.
Jean Pascal Lim
<span lang=“NL” style=“font-size:
Document doc = new Document(MyDir + "test (1).docx");
DocumentBuilder builder = new DocumentBuilder(doc);
Paragraph para = (Paragraph)doc.getChild(NodeType.PARAGRAPH, 1, true);
//Move the cursor to empty paragraph
//Get the size of empty paragraph
//If style is applied to paragraph, you can get the font size by Style.getFont().getSize()
That’s exactly what I was looking for.
I found the line in case a style is applied but couldn’t find any way otherwise.
Thank you very much