目录
当前项目示例,其中引用了aspose.slides jar包,并编写一个测试类。
import com.aspose.slides.Presentation;
import com.aspose.slides.SaveFormat;
public class Test {
public void getPPt() throws Exception{
Presentation pres1 = new Presentation("f://aa.pptx");
RW_ALL_vWATERMARKTEXT rw1 = new RW_ALL_vWATERMARKTEXT();
pres1 = rw1.insert(pres1, "aaa");
pres1.save("f://aa_b.ppt", SaveFormat.Pptx);
}
}
一、配置pom
1.在pom.xml中设置打包方式和当前版本
<groupId>test</groupId>
<artifactId>test</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
2.在pom中添加一个插件
<build>
<plugins>
<plugin>