Hi, I have some problem with font formating. I am using aspose.words for Java. Here is my code snippet that can halp you to reproduct problem:
String testDoc = "aspose/words/test.doc"; InputStream inputStream = this.getClass().getClassLoader() .getResourceAsStream(testDoc); Document document = new Document(inputStream); DocumentBuilder builder = new DocumentBuilder(document); Section section = document.getFirstSection(); Body body = section.getBody(); Paragraph paragraph = body.getFirstParagraph(); paragraph = (Paragraph) paragraph.getNextSibling(); NodeCollection paragraphChildes = paragraph.getChildNodes(); Shape shape = (Shape) paragraphChildes.get(3); NodeCollection shapeChildes = shape.getChildNodes(); paragraph = (Paragraph) shapeChildes.get(1); builder.moveTo(paragraph); out.println(paragraph.getText()); out.println(builder.getBold()); out.println(builder.getFont().getBold());
Problem is that builder says that fonts in that particular paragraph are bold, but in attached test.doc file you can see that it is not true.