Hi,
for text in attached document I get wrong font name and height. Here is test:
public class AsposeFont {
public void test() throws Exception {
Document docx = new Document("/ArialHeading11.docx");
Iterator iterator = new Iterator();
docx.accept(iterator);
}
public class Iterator extends DocumentVisitor {
public int visitRun(Run run) throws Exception {
System.out.println("Run Text: " + run.getText()
+ " **** Font Name: " + run.getFont().getName()
+ " **** Font Size: " + run.getFont().getSize());
return super.visitRun(run);
}
}
}
Can You help me with this?
Thanks
Best regards