国产PPT格式控件Spire.Presentation功能演示:在Java中验证 PowerPoint 文档是否经过数字签名

Spire.Presentation for Java 专业的 PowerPoint API,它允许开发人员在 Java 应用程序中创建、读取、写入、转换和保存 PowerPoint 文档,而无需安装 Microsoft PowerPoint。

点击此处下载最新版测试。

验证 PowerPoint 文档是否经过数字签名

Spire.Presentation for Java 提供了Presentation.isDigitallySigned()方法来检测 PowerPoint 文档是否经过数字签名。如果该方法返回 true,则表示文档已进行数字签名。

以下是实现该功能的详细步骤:

  • 创建一个Presentation实例。
  • 使用Presentation.loadFromFile()方法加载 PowerPoint 文档。
  • 使用Presentation.isDigitallySigned()方法检测文档是否经过数字签名。

import com.spire.presentation.Presentation;public class VerifyIfPPTisDigitallySigned {    public static void main(String []args) throws Exception {        //Create a Presentation instance        Presentation ppt = new Presentation();        //Load a PowerPoint document        ppt.loadFromFile("Sample.pptx");        //Verify if the document is digitally signed or not        if (ppt.isDigitallySigned()) {            System.out.println("This document is digitally signed");        } else {            System.out.println("This document is not digitally signed");        }    }}

国产PPT格式控件Spire.Presentation功能演示:在Java中验证 PowerPoint 文档是否经过数字签名

是E-iceblue官方友好合作伙伴,如果您对spire.Presentation感兴趣,可以联系在线客服了解具体授权价格和使用机制。

标签:

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2021年10月6日
下一篇 2021年10月6日

相关推荐

发表回复

登录后才能评论