通过设置MarkAsFinal文档属性为ture,演示文稿便会标记为最终状态,表示作者已完成编辑,这是文档的最终版本,不希望文档有任何其他更改。该文将介绍如何使用Spire.Presentation在Java应用程序中标记演示文稿为最终状态。
import com.spire.presentation.FileFormat;
import com.spire.presentation.Presentation;
public class MarkAsFinal {
    public static void main(String[] args) throws Exception {
        //加载示例文档
        Presentation presentation = new Presentation();
        presentation.loadFromFile("Sample.pptx");
        //设置文档属性 MarkAsFinal 为true
        presentation.getDocumentProperty().set("_MarkAsFinal", true);
        //保存文档
        presentation.saveToFile("output/MarkasFinal.pptx", FileFormat.PPTX_2010);
    }
}效果图:

 



 
					



