Hi,
For almost every run in the attached word document, run.getFont().getSize() returns 10 instead of 12.
String path = “Test.docx”;
Document document = new Document(path);
List runs = new ArrayList();
try {
document.accept(new DocumentVisitor() {
@Override
public int visitRun(Run run) throws Exception {
runs.add(run);
return super.visitRun(run);
}
});
} catch (Exception e) {
throw new RuntimeException(e);
}
for (Run run : runs) {
System.out.println(run.getText() + ": " + run.getFont().getSize());
}
Can you check this?
Thanks,
Zeljko
Thanks,
Zeljko