OpenSourcePicks

Open source alternatives to popular software, with live GitHub data

GitHub stats refreshed every day

JSignPdf

Desktop and command-line PDF signer for your own certificates, smart cards and PAdES signatures

Visit JSignPdfGitHubDocumentation

Main features

  • Signs PDFs with PKCS#12 files, Java keystores or PKCS#11 tokens and smart cards
  • PAdES baseline B, T, LT and LTA signatures through the EU DSS engine
  • RFC 3161 timestamps, with optional server authentication
  • OCSP and CRL embedding for long-term validation
  • Visible signatures placed by drag and drop
  • Command-line and batch mode with the same options as the interface
  • Installers for Windows, Linux and macOS

What JSignPdf does

JSignPdf is not a DocuSign-style service; it is the tool you use when a signature has to be made with your own certificate. It adds a cryptographic digital signature to a PDF using a private key you hold: a PKCS#12 file, a Java keystore, or a hardware token, smart card or HSM through PKCS#11. You can make the signature visible on the page, dragging its box to the right place and filling it with your name, the time and other details, or keep it invisible.

The current version has a JavaFX interface with a PDF preview, and every option is also available on the command line, so a batch of invoices or reports can be signed by a script. Installers for Windows, Debian, Fedora-style Linux and macOS bundle their own Java runtime, and a Homebrew tap is available.

Long-term validation and PAdES

Signatures can include an RFC 3161 timestamp from a timestamp authority and the certificate’s revocation status (OCSP responses or CRLs), so they can still be validated after the signing certificate expires. Besides its default OpenPDF engine, JSignPdf bundles the EU DSS library as a second engine, which produces PAdES (PDF Advanced Electronic Signatures) at the baseline levels B, T, LT and LTA, the format used for advanced and qualified signatures on PDFs.

Qualified signatures

Under eIDAS, a qualified electronic signature is an advanced signature made with a qualified certificate on a qualified signature creation device, typically a smart card or token from a qualified trust service provider. If you have such a certificate and device, JSignPdf can use it through PKCS#11 to sign PDFs. The legal level comes from the certificate and the device, not from the software, so check what your provider issues. The web platforms in this category either do not offer qualified signatures in their open source editions or, like Documenso, offer them only through a commercial license and a provider’s cloud service.

Running JSignPdf

JSignPdf runs on the desktop or in a terminal; there is nothing to host. It needs Java 21, which the native installers include. For hardware tokens you also need the manufacturer’s PKCS#11 driver and a small configuration entry, which can be edited in the preferences. Developers can embed the signing engine through Maven artifacts. LibreSign downloads and uses JSignPdf as one of its signing engines.

Hosted version

There is no hosted version; JSignPdf is a desktop and command-line application.

Limitations

There is no workflow: no invitations, reminders, signing order for several people or audit trail. Each signer needs their own certificate. The repository has fewer stars than the web platforms here, but the project has a long history and is distributed through GitHub releases and SourceForge.

Who it suits

JSignPdf suits people and organizations that sign with certificates from a trust service provider, such as lawyers, accountants and public bodies with smart cards, and developers or administrators who need to sign many PDFs in batch. For collecting signatures from others, pair it with or choose one of the workflow apps in our e-signature guide.

License details

MPL-2.0. Dual-licensed under MPL-2.0 or LGPL-2.1, at your choice.

What the Mozilla Public License 2.0 means for you

Technical details

Self-hosting needs

  • Java 21 (bundled in installers)

Built with

  • Java
  • JavaFX

GitHub topics

  • cli
  • digital-signature
  • digital-signing
  • hsm
  • java
  • javafx
  • ltv
  • ocsp
  • pdf
  • pdf-signature
  • pkcs11
  • pkcs12
  • rfc3161
  • smartcard

Reviewed by the OpenSourcePicks editors from the project's repository and documentation. Something out of date? Tell us.

JSignPdf compared with similar tools

AppLicenseSelf-hosting needsHosted versionLast commit
DocumensoAGPL-3.0*PostgreSQL, SMTP server, Signing certificate (.p12)Yes3 days ago
DocuSealAGPL-3.0*SQLite, PostgreSQL or MySQL, SMTP serverYes5 days ago
JSignPdfMPL-2.0*Java 21 (bundled in installers)Notoday
LibreSignAGPL-3.0-or-later*Nextcloud server, Java and JSignPdf (installed by the app)Notoday
OpenSignAGPL-3.0*MongoDB, SMTP server or Mailgun, Signing certificate (PFX)Yesyesterday
Signature PDFAGPL-3.0*PDFtk, ImageMagick, Ghostscript, librsvg, potraceYes1 month ago

An asterisk marks a license with exceptions, such as proprietary directories or paid plugins; see the app page.