Skip to content

Unencrypted wrapper documents: writing #235

Closed

Description

@michaelstonis

Parent

#231 → #33 Spec: Broadside v1

What to build

An encrypted document can be saved inside an unencrypted wrapper: the encrypted bytes become the embedded payload with its encrypted payload dictionary and associated-file relationship, the cover document is supplied by the caller (or a blank page by default), and the collection is set so conforming readers open the payload.

Spec clauses

ISO 32000-2 §7.6.7; spec stories 4, 28

Acceptance criteria

  • A wrapper written from encrypted-aes-256.pdf passes qpdf check, and reopening it through P2 yields the original payload's pages and text.
  • The wrapper declares PDF 2.0 through version raising (Version raising and strict-mode refusal #141); strict mode refuses a wrapper whose payload is not encrypted.
  • A caller-supplied cover document is used unchanged as the wrapper's pages.

Blocked by

Deliverables (every ticket)

  • Tests through the public seam (see the spec's Testing Decisions)
  • XML docs citing clauses on public types
  • Conformance map rows updated in the same PR
  • PublicAPI.Unshipped.txt updated
  • Fuzz target and benchmark where the ticket adds a parser, codec or hot path

Metadata

Metadata

Assignees

Labels

phase:7Phase 7ready-for-agentTriaged: an agent can pick this up without further clarificationtaskUnit of work from the task templatetrack:7A-coverageTrack 7A coverage gaps

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions