Hi,
After running the code below I get font size 14 for the Run "— Il regionalismo si propone essenzialmente di tre diverse finalità:", but it is set to 12 in the document. Can you please check this?
Thanks,
Zeljko
Code:
public void test() throws Exception {
Document document = new Document("Test2.rtf");
List runs = getRuns(document);
for(Run run: runs) {
System.out.println(run.getText());
System.out.println("Size is: " + run.getFont().getSize());
}
}
private List getRuns(Document document) throws Exception {
final List runs = new ArrayList();
document.accept(new DocumentVisitor() {
@Override
public int visitRun(Run run) throws Exception {
runs.add(run);
return super.visitRun(run);
}
});
return runs;
}