spire.presentation hotfix version 4.4.3今天正式发布了,该版本添加了两个新属性:slidepicture.iscropped 和presentation.isnoteretained分别支持判断图片是否被裁剪以及设置在转换ppt到svg时是否保留备注。同时,它还优化了ppt转pdf的效果。具体更新内容如下:
新功能:
- 添加了slidepicture.iscropped属性来判断图片是否被裁剪。
foreach (ishape shape in ppt.slides[0].shapes)
{
if (shape is slidepicture)
{
slidepicture slidepicture = (slidepicture)shape;
bool reault = slidepicture.iscropped;
}
}
presentation ppt = new presentation();
ppt.loadfromfile(inputppt);
ppt.isnoteretained = true;
queue bytes = ppt.savetosvg();
int length = bytes.count;
for (int i = 0; i < length; i )
{
filestream filestream = new filestream(string.format(@"output_{0}.svg", i), filemode.create);
byte[] outputbytes = bytes.dequeue();
filestream.write(outputbytes, 0, outputbytes.length);
}
ppt.dispose();
问题修复:
- 修复了转换ppt到pdf时图表标签上移的问题。
获取spire.presentation 4.4.3,请点击:
https://www.e-iceblue.cn/downloads/spire-presentation-net.html