Skip to content
/ pades Public

Utility class to sign pdf files width PAdES (PDF Advanced Electronic Signature) digital signature.

License

Notifications You must be signed in to change notification settings

giosil/pades

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PAdES

Utility classes to sign pdf files width PAdES (PDF Advanced Electronic Signature) using iText or Apache PDFBox libraries.

Before use carefully read the licenses of third-party libraries.

The library provides the following classes:

  • org.dew.pades.PAdESSignerIText - PAdES Signer based on iText
  • org.dew.pades.PAdESSignerBox - PAdES Signer based on Apache PDFBox

Examples

PAdESSignerIText pades = new PAdESSignerIText("keystore.jks", "password", "selfsigned");

pades.sign(pdfFilePath, signedFilePath, "creator", "contact@dew.org", "reason", "location");

byte[] out = pades.sign((byte[]) in, "creator", "contact@dew.org", "reason", "location");
PAdESSignerBox pades = new PAdESSignerBox("keystore.jks", "password", "selfsigned");

pades.sign(pdfFilePath, signedFilePath, "creator", "contact@dew.org", "reason", "location");

byte[] out = pades.sign((byte[]) in, "creator", "contact@dew.org", "reason", "location");

Build

  • git clone https://github.com/giosil/pades.git
  • mvn clean install
  • mvn dependency:copy-dependencies

Contributors

About

Utility class to sign pdf files width PAdES (PDF Advanced Electronic Signature) digital signature.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages