I have a word document, in that we have a variables like @DATE. When we read it as XWPFRun from XWPFParagraph, we get two runs 1. “@” and 2. “DATE.
Now the question is how to get Fontsize of “DATE” (2nd run), I am getting 1st run “@” font size but Null for Second Run “DATE”
<code>for (XWPFParagraph p : cell.getParagraphs()) {
for(XWPFRun r1 : p.getRuns()){
iFontSize = r1.getFontSizeAsDouble()
}
}
</code>
<code>for (XWPFParagraph p : cell.getParagraphs()) {
for(XWPFRun r1 : p.getRuns()){
iFontSize = r1.getFontSizeAsDouble()
}
}
</code>
for (XWPFParagraph p : cell.getParagraphs()) {
for(XWPFRun r1 : p.getRuns()){
iFontSize = r1.getFontSizeAsDouble()
}
}
Any help would be highly appreciated.
Thank you,
Priyanka