该文将介绍如何使用spire.presentation for java将opendocument 演示文稿(.odp)另存为pdf格式。
java
import com.spire.presentation.*;
public class test {
public static void main(string[] args) throws exception {
presentation presentation = new presentation();
presentation.loadfromfile("topdf.odp",fileformat.odp);
presentation.savetofile("output/result.pdf", fileformat.pdf);
}
}
效果图: