spire.presentation for java 4.11.7已发布。该版本支持添加数学公式和检测shape是否包含数学公式,并且增强了ppt到图片,ppt到pdf的转换功能,还修复了图表图例”是否重叠“属性设置不生效等已知问题。详情请阅读以下内容。
新功能:
- 支持添加数学公式和检测shape是否包含数学公式
presentation ppt = new presentation();
ppt.loadfromfile("input.pptx");
string latexmathcode = "x^{2} \\sqrt{x^{2} 1}=2";
iautoshape shape = ppt.getslides().get(0).getshapes().appendshape(shapetype.rectangle, new rectangle2d.float(30, 100, 400, 30));
shape.gettextframe().getparagraphs().clear();
//add math equation
paragraphex tp = shape.gettextframe().getparagraphs().addparagraphfromlatexmathcode(latexmathcode);for (int i = 0; i
问题修复:
- 修复了图表图例”是否重叠“属性设置不生效的问题。
- 修复了isnofill()和getalignment()方法返回错误值的问题。
- 修复了ppt形状转图片时内容不正确的问题。
- 修复了复制幻灯片后,动画效果被修改的问题。
- 修复了多线程转换ppt文件为pdf时内容出错的问题。
获取spire.presentation for java 4.11.7请点击:
https://www.e-iceblue.cn/downloads/spire-presentation-java.html