Verify/Add PDF Signatures with iText7

我们两清 提交于 2019-12-23 06:01:13

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!