版本:23.8
编程语言:java
当中间加了一段css样式后,html转word后图片消失,
如果中不加css样式,图片可以正常显示
源文件:
ccc.zip (1.5 MB)
转换代码:
com.aspose.words.Document docx = new com.aspose.words.Document(htmlInputStream);
ByteArrayOutputStream byteAr…...getLeftMargin(); Shape shape = (Shape) doc.getChild(NodeType.SHAPE, 0, true);...true); shape.setAspectRatioLocked(false); shape.setWidth(pageWidth...