MS Word: XWPFRun has no Font Size
Endre Nagy <[email protected]> Sun, 9 Jun 2024 16:03:13 +1000
| Newsgroups | gmane.comp.jakarta.poi.user |
|---|---|
| Message-ID | <CADOLf1E=3quKPJwP4BFoqJzAqSPc6U9B0wKv8186yoKDBDCOqw@mail.gmail.com> |
--0000000000005fd5fc061a6ecad7 Content-Type: text/plain; charset="UTF-8" Greetings I iterate through each XWPFRun for each XWPFParagraph of an XWPFDocument. There is, intermittently, a run that returns getFontSize() = -1; getFontSizeAsDouble() = null; getComplexScriptFontSizeAsDouble() = null; Nevertheless getText(0) ,getFontName(), isBold() ... each return what I can see in the document through a docx user client. I can see the fragment in the client with FontSize = 12 Im Using POI 5.2.5 , though I upgraded because an earlier version also had this issue. Glad to provide further details, but is there any circumstance where this is the expected result? Grevillea --0000000000005fd5fc061a6ecad7--