Link

Digitally Sign PDF files

v2024.11

JPedal supports PAdES Baseline Level B signatures.

Prerequisites

To digitally sign a PDF file using JPedal, you must have a keystore that meets the following requirements:

  • The keystore must be a PKCS #12 file containing your private key and X.509 certificate
  • The certificate must be valid
  • The certificate signature algorithm used must be SHA256 with RSA
  • The private key usage must include digitalSignature

Sign PDF Files in Java

Static Convenience Methods

PdfSigner.signPdf(
        "inputFile.pdf",
        "outputFile.pdf",
        "keystorePassword",
        "keystoreFile.p12",
        "signerName",
        "signerLocation",
        "signingReason",
        ACCESS_PERMISSION.P1);

Signing Parameters:

  • input is the file location of the PDF document to be signed
  • output is the file location of the PDF document after it has been signed
  • password is the password for the keystore
  • keystore is the file location of the keystore
  • name is the person/business signing the document
  • location is the real-world location of where the document is being signed
  • reason is the reason for signing the document
  • permissions is the document access permission level

Document Access Permission Levels:

  • P1 No changes are allowed otherwise the signature is invalidated
  • P2 No changes are allowed except filling in forms, instantiating page templates, and signing
  • P3 Includes the allowed changes from level 2, as well as annotation creation, deletion, and modification

Why JPedal?

  • Actively developed commercial library with full support and no third party dependencies.
  • Process PDF files up to 3x faster than alternative Java PDF libraries.
  • Simple licensing options and source code access for OEM users.

Start Your Free Trial


Customer Downloads

Select Download