ZPDF // ENGINEERING REPORT

// implemented engine · module map · GUI in progress

Home Port Report GitHub
Status: implemented engine — GUI in progress. The zpdf-core engine is implemented and every capability in the feature port report is marked done, each cited to a real, non-stub engine symbol. This application repository ships real source: the Tauri v2 backend in src-tauri/ and the cyberpunk HUD front end in frontend/, with the GUI under active development. Feature status is derived from source and verifiable against this repo and zpdf-core — no invented metrics.

Architecture

zpdf is the GUI — a from-scratch PDF editor delivered as a Tauri v2 desktop app with a cyberpunk HUD. It consumes zpdf-core, the implemented, embeddable pure-Rust engine that owns the PDF object model and the editing, annotation, form, signature, and security operations. The split keeps the app layer thin: the desktop GUI, a scriptable CLI, and any in-app embed (traderview and the other MenkeTechnologies apps) all share one engine. The engine writes the PDF object model directly — no third-party PDF engine, no C++ blob, no AGPL — so structure-level operations (linearization, font subsetting, redaction that truly removes content) are first-class.

Module map

The capability map for the engine zpdf consumes. Each module below corresponds to a real source file in the zpdf-core engine; per-module symbol status is derived from source and cross-checked in the port report.

moduleresponsibilitystatus
docopen / save · in-memory from_bytes / to_bytes · version · metadataimplemented
pagecount · rotate · delete · reorder · extract / split · crop · watermark · mergeimplemented
textextract · edit-in-place · find / replace · reflowimplemented
annotnotes · highlight · ink · stamp · shapes · measureimplemented
formAcroForm fields · fill · flatten · create · FDF / XFDFimplemented
signcertificate sign · verify · timestamp · certifyimplemented
securityencrypt · decrypt · redact · sanitizeimplemented
ocrrasterize · recognize · searchable text layerimplemented
renderpage rasterizer for viewer · image export · thumbnailsimplemented

Roadmap

The port report enumerates the Adobe-Acrobat / macOS-Preview feature set and tracks status per feature; every row is now cited as done in the engine. No feature is marked done without verifiable code. The engine landed area by area, and the GUI now wires onto it:

  1. Core PDF model — direct parse / serialize of the PDF object model (objects, xref, streams, content streams); linearization and incremental update.
  2. Viewer + render — page rasterizer, thumbnails, zoom and page-layout modes wired into the Tauri HUD.
  3. Page management — insert / delete / extract / reorder / merge, rotate, crop, watermark, Bates.
  4. Annotation / markup — the Preview-style toolbar surface on top of the engine's annotation model.
  5. Forms — AcroForm create / fill / flatten, FDF / XFDF.
  6. Signatures & security — certificate signing, validation, encryption, true-removal redaction, sanitize.
  7. OCR · convert / export · compare · optimize · accessibility · automation — the remaining Acrobat surface, batch and CLI included.

Verification policy

Status is never asserted from a roadmap. A capability counts as done only when a real, non-stub symbol exists in the engine and the port report can cite it. Integration tests build valid PDFs in memory (no external fixtures) and exercise the engine's capabilities — runnable on headless Linux CI. Every claim on this page is verifiable against source in this repo and in the zpdf-core engine.