Skip to content

Linearized writing #228

Closed
Closed

Description

@michaelstonis

Parent

#87 → #33 Spec: Broadside v1

What to build

A full rewrite can produce a linearized file: the first page's objects first, the linearization parameter dictionary, the page offset and shared object hint tables, and the two cross-reference sections, so viewers and the range-request source can show page one before the rest arrives.

Spec clauses

ISO 32000-2 Annex F

Builds on

Integrated earlier work: #40, #44

Acceptance criteria

  • Every well-formed minimal-corpus file saved linearized passes qpdf --check and qpdf --check-linearization with no errors.
  • Reopening the output reports IsLinearized true with hint tables whose page offsets match the written layout.
  • The range-request source (D118) opens a linearized output and renders page one after reading only the first-page byte range (test with a counting source).
  • Linearizing an incrementally updated input rewrites it fully; incremental save of a linearized file drops linearization with an Information diagnostic.
  • Conformance rows for Annex F writing updated.

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

Activity

  1. added
    taskUnit of work from the task template
    ready-for-agentTriaged: an agent can pick this up without further clarification
    on Oct 10, 2026
  2. added a commit that references this issue on Oct 14, 2026
  3. added
    integratedMerged into the spec integration branch; closes when the integration PR merges
    and removed
    in-progressClaimed and being worked on
    on Oct 14, 2026
  4. added a commit that references this issue on Oct 14, 2026
  5. michaelstonis commented on Oct 16, 2026

    @michaelstonis
    OwnerAuthor

    Done: implemented, tested and merged into the integration branch spec/33-broadside-v1 (full gate green). It reaches main with PR #277.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

integratedMerged into the spec integration branch; closes when the integration PR mergesphase:4Phase 4ready-for-agentTriaged: an agent can pick this up without further clarificationtaskUnit of work from the task templatetrack:4B-editTrack 4B-edit

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions