Skip to content
PressJetDocs Docs v0.1.0-beta.9 GitHub
Edit this page
Source docs v0.1.0-beta.9 Install v0.1.0-beta.7
On this page

Electronic signing workflows

An electronic acceptance records what a participant reviewed, the decision and consent they gave, and the context your application captured. The final PDF and signed evidence can be sealed with an organization's certificate. A typed name, initials or drawn mark represents the participant's recorded action. Certificate-based signatures over PDF byte ranges have their own validation and trust policy. Digital signatures

Choose deployment and storage

Responsibility PostgreSQL pilot Storage-neutral signing on main
Service or library pressjet signing serve, worker and optional mail processes Ordinary HTTP server, or in-process Rust with pressjet::signing
Documents and signers Registry template, exact review bytes, ordered recipients. Beta 7 accepts two distinct recipients. Main supports up to 32 signers. Templates or supported unsigned PDFs with boxes. 1–32 ordered participants and at most 256 marks. Use signer-1 for a one-person agreement.
Review UI and marks Included sender and recipient pages, or build your own over the API. Typed names and initials. Caller supplies the UI. Typed or drawn PNG signatures and initials.
Persistence and concurrency PostgreSQL stores revisions, envelopes, receipts and leased jobs. Preparation is idempotent. Transactions guard acceptance and finalization. Caller stores the sealed envelope verbatim and commits each transition with a version check, event append and delivery work.
Notifications Manual links or configured SMTP worker for invitations and completion. Pressjet returns invitation, seal and completion effects. The caller dispatches them idempotently.
Stop a workflow Decline or revoke an open envelope. Decline, revoke or expire an open agreement. Void a completed agreement and issue a separate VOIDED copy.
Verification CMS v1 evidence and sealed PDF. Authenticated revisions, envelopes and event chains, plus CMS v2 evidence and a sealed PDF.

Stateful pilot · Pilot API · Storage-neutral how-to and examples

Follow the agreement lifecycle

  1. Prepare the exact document. Resolve the template data or upload the PDF, validate fields and positions, then bind the review to its SHA-256. Keep the original bytes and revision available for the signer.
  2. Invite participants in order. A bearer token authorizes the specified invitation. The default window is seven days. The storage-neutral workflow accepts a configured future expiry up to 365 days. Expiration is evaluated against the transition clock.
  3. Capture the decision. Return the review ID and PDF hash, consent and consent version, the mark and any prior receipt required for continuity. The state machine checks roles, turn order and competing state updates. A repeated decision can return the original receipt.
  4. Seal and publish. Bind the rendered marks and exact PDF to the accepted state, seal the finished PDF and sign the evidence. Publish artifacts with the committed agreement. In the storage-neutral workflow, an application can issue a separately derived voided copy while preserving the previously sealed bytes and history.

Envelope rules and tests · Document preparation · Sealing tests · Pilot integration

Own identity, storage and delivery

Invitation access shows possession of the token. Your application determines how to establish a signer's identity, tenancy and authority, and what written consent and evidence it requires. The pilot can observe request metadata, including IP with a configured trusted proxy. In the storage-neutral flow the application supplies signer metadata and controls how artifacts and personal data are presented, retained and deleted. A server with both the database and its keys can alter state. A valid old envelope can also be replayed by an integrator without appropriate sequence controls. Separate keys from storage and commit the state transition and outbox atomically.

The PostgreSQL, MySQL and MongoDB recipes are integrator examples with a repository check. SQLite has a runnable example. They demonstrate compare-and-swap, idempotent insertion, event persistence and safe replay under the app's transaction model. The stateless service itself makes no database connection for these routes. Use an application-owned authentication and notification provider. Recipe checker · SQLite example · SDK and Rust methods · Independent evidence verifier

Verify the final artifacts

Verify the certificate and signature over the final PDF, then check the CMS evidence against a trust anchor you supply. The evidence carries the original and sealed PDF hashes, receipts and identifiers for the agreement. For the storage-neutral workflow, verify the stored event chain when you need to check the sequence of transitions. An authorized party can independently check the delivered PDF and evidence with the repository verifier and pyHanko.

python3 scripts/verify_signing_agreement.py sealed.pdf evidence.p7m \
  --trust-anchor root.pem --original original.pdf --events events.json

Pass the original PDF and, for v2, the events when those files are available. Trust the recipient's approved anchor. A self-issued fixture certificate requires explicit trust. Verifier implementation · Verifier tests · Storage-neutral evidence