问题描述
我需要将使用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:
这篇关于使用iText7验证/添加PDF签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!