Introduction
Digital signature is an effective and commonly used way to protect PDF files from changing by others without permission. This article is going to illustrate how to add digital signature into a PDF file and verify the digital signature using a free Java PDF API - Free Spire.PdF for Java.
Prerequisites
对于maven项目,通过在pom.xml中添加以下代码,我们可以轻松地将依赖关系添加到Java API的Free Spire.PDF中:
<repositories>
<repository>
<id>com.e-iceblue</id>
<name>e-iceblue</name>
<url>http://repo.e-iceblue.com/nexus/content/groups/public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>e-iceblue</groupId>
<artifactId>spire.pdf.free</artifactId>
<version>2.4.4</version>
</dependency>
</dependencies>
(The latest version of Free Spire.PDF for Java in maven repository can be found here)
For