Pressjet

Digitally sign PDFs with PAdES.

Apply a PAdES B-B signature to a finished PDF with the self-hosted Pressjet API and your organization’s PKCS#12 certificate.

Sample lease approval PDF with a signature line under the agreement text

Sign the finished PDF

POST /v1/sign

Configure the server’s signing certificate, then submit the assembled PDF and signing details. This Node.js example saves the signed PDF.

import { readFile, writeFile } from "node:fs/promises";

const pdf = await readFile("agreement.pdf", "base64");
const response = await fetch("http://localhost:8080/v1/sign", {
  method: "POST",
  headers: {
    Authorization: "Bearer " + process.env.PRESSJET_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    version: 1,
    pdf,
    signature: {
      name: "Example Organization",
      reason: "Agreement approval",
      signingTime: new Date().toISOString(),
    },
  }),
});
if (!response.ok) throw new Error(await response.text());
await writeFile("signed-agreement.pdf", Buffer.from(await response.arrayBuffer()));
Configure the signing certificate ↗

Verify the signature and certificate

Use a PDF reader or Poppler’s pdfsig to inspect the signature. Check that the signature covers the expected document and that the recipient trusts the certificate chain. The sample uses a self-signed test certificate.

pdfsig signed-agreement.pdf
See how to sign and verify a packet

Collect two acceptances

The local signing pilot sends an agreement to a client and a company signer in order, then publishes the certified PDF and signed evidence. Build it from source with PostgreSQL and a signing worker.