v1.0 · Stable · Apache-2.0

PDFAD
PDF Agent Descriptor

Self-describing manifest embedded in a PDF — element index, design DNA, edit journal, engine capabilities — so AI agents understand the document without re-parsing it.

examples/agent_manifest.json
{
  "spec": "PDFAD/1.0",
  "doc_id": "sha256:3a7f9c2e1b...",
  "generator": "pdf-engine/1.0",
  "created": "2026-11-22T15:00:00Z",

  "dna": {
    "fonts": {
      "h1": {"font": "helv", "size": 18, "color": "#111111"},
      "body": {"font": "helv", "size": 11, "color": "#333333"}
    },
    "palette": ["#1a5276", "#000000"],
    "grid": {"margins": [50, 50, 50, 50], "columns": 1},
    "rhythm": {"spacing_scale": [8, 12, 16, 24]}
  },

  "elements_index": {
    "pages": 4,
    "id_scheme": "e<base36(sha1(pos|style|text))>",
    "stats": {"tables": 2, "images": 5, "form_fields": 0}
  },
 
…

Why it exists

PDFAD defines a self-describing manifest embedded inside a PDF (embedded file agent_manifest.json or XMP pdfad:manifest). A pdfadged document explains itself to agents: its element index, its Design DNA, its edit journal, and what an engine is allowed to do.

Key properties

dna

The document's inferred design system: fonts, palette, grid, rhythm — resolves role: selectors in ops.

elements_index

Page count, id scheme and content stats — the agent knows the map before touching the territory.

capabilities

What the producing engine supports: patches, journal, verify, roles.

integrity

Scene-graph merkle root — tamper detection before trusting the manifest.

Untrusted by design

Manifests are data, never prompts — a rule against prompt injection.

Invisible to humans

Embedded file or XMP packet — zero visual footprint.

Related specifications

SpecFull nameRelation
PDFSPPDF Scene Patchelements_index.id_scheme defines the ids PDFSP selectors use.
PDFDTPDocument Transaction Protocoljournal_head and capabilities reflect DTP journal/certificate state.