问题
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 repository:
https://github.com/itext/i7js-signatures/tree/develop/src/test/java/com/itextpdf/samples/signatures
来源:https://stackoverflow.com/questions/37647359/verify-add-pdf-signatures-with-itext7