Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12141

Get second run font size using Apache POI

$
0
0

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.

How can I get the font size of "DATE" (2nd run)? I am getting first run "@" font size, but null for second run "DATE"

for (XWPFParagraph p : cell.getParagraphs()) {   for(XWPFRun r1 : p.getRuns()){      iFontSize = r1.getFontSizeAsDouble()   } }

So here, for the second run "DATE", getFontSizeAsDouble returns null.


Viewing all articles
Browse latest Browse all 12141

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>