Verify/Add PDF Signatures with iText7

2019-06-10 08:03发布

问题:

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?

回答1:

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

https://github.com/itext/i7js-samples/tree/develop/publications/signatures



标签: java pdf itext