---
title: "PDF-PQS"
description: "An open standard for adding quantum-resistant digital signatures to PDF documents without breaking existing readers."
---

> Documentation Index
> Fetch the complete documentation index at: https://pdf-pqs.org/llms.txt
> Use this file to discover all available pages before exploring further.

# PDF-PQS

PDF-PQS lets organizations add a quantum-resistant digital signature to any PDF while keeping its regular signature intact. Existing tools like Adobe Acrobat continue to show the document as signed and valid today, and the post-quantum signature ensures you can still prove the document is authentic years from now, even after quantum computers can break today's cryptography.

## Why this matters

A digital signature on a PDF answers two essential business questions: **who signed this document**, and **has anyone changed it since it was signed?**

Nearly every signed PDF in circulation today relies on RSA or ECDSA. Both algorithms are secure against conventional computers, but a sufficiently powerful quantum computer can break them. Once that happens, an attacker could alter a signed contract and generate a convincing forged signature. They could even backdate the forgery, because today's digital timestamps rely on the same vulnerable algorithms. When a signature can be forged retroactively, signed records lose their legal and audit value.

## Why now

Legal agreements, property deeds, loan files, insurance policies, and medical records often need to hold up for 10, 20, or 30 years. A contract signed this year may need to prove its authenticity in 2040.

You cannot wait until quantum computers arrive and simply re-sign old files. Once attackers can forge older signatures, adding a new signature later only proves what the file looked like on the day you re-signed it, not on the day it was originally executed. Long-term proof has to be built in at signing time.

The cryptography is already standardized. NIST finalized ML-DSA (FIPS 204) in 2024, and standard formats like CMS and X.509 already support it. What has been missing is a standard way to store an ML-DSA signature inside a PDF file. PDF-PQS fills that gap today as an open interim standard until ISO 32000 or ETSI publish native post-quantum PDF support.

## Why two signatures

A PDF-PQS file carries two signatures covering the same document content, and verifiers check both:

- **The classical signature (RSA or ECDSA)** keeps everything working smoothly today. Recipients open the PDF in Adobe Acrobat, macOS Preview, or any standard PDF viewer and see a normal, valid signature with no plugins or upgrades.
- **The post-quantum signature (ML-DSA)** protects the document against future quantum attacks.

Pairing both signatures acts as a safety net in both directions. If quantum computers break RSA or ECDSA, ML-DSA still proves the file was not tampered with. Because ML-DSA is newer, if researchers ever discover a weakness in it, the classical signature still holds. To forge the document, an attacker has to defeat both algorithms.

Best of all, your signers do not have to sign twice. Your signing software generates the post-quantum signature automatically and tucks it either inside the classical signature block or into a small attached file, without ever invalidating signatures that are already on the PDF.

## How it works

1. **Sign as usual.** Your signing workflow applies a standard classical PDF signature with your existing certificate.
2. **Attach the post-quantum signature.** Your signer creates an ML-DSA signature over the same document bytes and places it either inside the classical signature or as a small embedded attachment.
3. **Publish a domain policy.** Your organization publishes a small JSON file at `https://pdfpqs.<domain>/.well-known/pdfpqs.json` listing your authorized certificate issuers and the date your organization began requiring post-quantum signatures.
4. **Verify both layers.** A PDF-PQS verifier checks the signature, validates the certificate chain, and checks your domain policy so that if someone tries to strip off the post-quantum signature, the verifier catches it.

## Start here

- [**Learn the concepts**](https://pdf-pqs.org/concepts/covered-bytes) — Plain-English walkthroughs of how PDF revisions, signature placement, domain discovery, and verification work.
- [**Follow a guide**](https://pdf-pqs.org/guides/verify-cli) — Step-by-step tutorials to verify PDFs, sign with TypeScript or Cloudflare Workers, inspect payloads in OpenSSL, and publish a domain policy.
- [**Run the test vectors**](https://pdf-pqs.org/tools/test-vectors) — Ready-made test files and expected outputs so you can confirm your implementation matches the standard.
- [**Read the specification**](https://pdf-pqs.org/specification) — The full IETF-style Internet-Draft, rendered section by section directly from its source.

## What the specification defines

- **The signature format.** A standard detached CMS signature using pure ML-DSA-65 or ML-DSA-87 and SHA-512. See [Section 4](https://pdf-pqs.org/specification/payload).
- **What bytes are protected.** The signature covers every byte of the PDF from the start of the file up to a clean revision boundary (`[0, L)`). See [Covered bytes and revisions](https://pdf-pqs.org/concepts/covered-bytes).
- **Where the signature lives.** Place A hides the signature inside an existing classical signature; Place B stores it as an embedded file attachment. See [Place A and place B](https://pdf-pqs.org/concepts/placement).
- **Domain discovery.** Organizations publish their authorized issuers and enforcement date at `https://pdfpqs.<domain>/.well-known/pdfpqs.json`. See [Domain discovery](https://pdf-pqs.org/concepts/discovery).
- **Standard result codes.** Every compliant verifier returns the same error and warning codes, making results easy to interpret in UIs and automated checks. See [Result codes](https://pdf-pqs.org/tools/result-codes).

## Design goals

1. **Build on proven standards.** PDF-PQS reuses standard CMS containers, X.509 certificates, Certificate Revocation Lists (CRLs), and RFC 3161 timestamps with ML-DSA. It only specifies where to place the signature in the PDF, which bytes it protects, and how to discover domain policies.
2. **Never break existing signatures.** Adding a PDF-PQS signature must never invalidate or alter the verification status of signatures already in the document.
3. **One signing workflow, two layers of verification.** Teams do not need a separate signing ceremony. The signer attaches the post-quantum signature alongside the classical one, and verifiers check both.
4. **Domain-based trust without gatekeepers.** Anyone can verify a signature using the signing organization's published domain policy, without waiting on a central trust list. Traditional trust lists remain optional for stronger identity assurance.

For the formal statement of these goals, see [Section 1.1](https://pdf-pqs.org/specification/introduction#design-goals).

Source: https://pdf-pqs.org/index.mdx
