java itext7 签名,使用iText7验证/添加PDF签名

  • Post author:
  • Post category:java


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

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

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.

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

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

解决方案

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