使用iText7验证/添加PDF签名 [英] Verify/Add PDF Signatures with iText7

查看:1281
本文介绍了使用iText7验证/添加PDF签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将使用iText5进行PDF签名验证/创建的Java程序移植到iText7。

I need to port a Java program that used iText5 for PDF signature verification/creation to iText7.

旧代码显然无法正常工作,对iText进行了重组。

The old code obviously does not work as-is, as much of iText was restructured.

我发现的所有关于如何执行此操作的示例和教程都适用于iText5。
那么(优秀的)白皮书。他们依靠 PdfReader 通过 getAcroFields() AcroFields 列表c $ c>方法,执行所有与签名相关的操作。

All examples and tutorials that I found on how to do this are for iText5. So does the (excellent) white paper. They rely on the PdfReader returning a list of AcroFields via the getAcroFields() method, on which all signature-related operations are executed.

在iText7中, PdfReader 执行没有那种方法了。

In iText7, the PdfReader does not have that method anymore.

有没有人知道关于iText7的示例/文档?

Does anybody know of examples/documentation on this for iText7?

推荐答案

您可以在我们的GitLab存储库中找到白皮书的移植样本:

You can find the ported samples of the White Paper on our GitLab repository:

http://gitlab.itextsupport.com/itext7/samples/tree/develop/publications/signatures

这篇关于使用iText7验证/添加PDF签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆