codex-pdf
OSSStructured PDF extraction API that turns complex files into consistent JSON.
Given your SKUs, press, and substrate, Sift computes the most efficient step-and-repeat, gang, or true-shape nest — then hands the plan to compile-pdf to write the PDF. Stateless, deterministic, API-first. Sift decides the layout; it never writes the PDF.
AGPL-3.0 · grid · gang (CP-SAT) · true-shape nest · deterministic plans
How it works
Sift answers one question, headlessly: given the job and the press, what is the most efficient layout? It produces the plan; compile-pdf writes the PDF.
POST your SKUs, quantities, and rules plus the press/substrate context to /v1/sift/solve. No queue, no inventory state — Sift is stateless.
Tier 1 grid (uniform / stagger step-and-repeat), Tier 2 gang (OR-Tools CP-SAT quantity balancing), Tier 3 nest (true-shape irregular dies). SIFT_TIERS gates which run.
Sift returns an ImposePlan — the layout logic behind the step-and-repeat — content-addressed and deterministic: same inputs, same plan, every time.
The plan goes to compile-pdf.impose, which writes the imposed PDF. Sift decides the layout; compile writes the bytes — a clean seam.
Built for web-to-print platforms, packaging houses, and prepress teams that want optimal layouts without lock-in.
Grid step-and-repeat (uniform & stagger), gang quantity-balancing across press forms (OR-Tools CP-SAT), and true-shape nesting of irregular dies — one API, the right algorithm per job.
Every solve is content-addressed (inputs, press, objective, seed, versions). Same request → same ImposePlan. Stochastic nests pin seed + budget so results are reproducible.
Rectangular grids use codex.geom.tile_grid; placement vocabulary (CellPlacement, flip_per_row, bleed_handling) and polygon ops come from codex — no re-implemented geometry.
/v1/sift/solve, /suggest, /estimate over REST — no queue, no inventory, no due-date storage (those live in MIS/synergy). Run it headless, anywhere.
Grid fast-path or explicit placements (stagger / gang / nest) on the ImposePlan, consumed by compile-pdf-impose. Sift plans; compile writes the deterministic PDF.
AGPL-3.0 OSS you can run on Docker or Railway, or use it through the hosted Print With Synergy SaaS — same solver, managed and metered.
Open source
Every engine is a standalone, AGPL-3.0 service with its own REST contract. Synergy chains them into workflows — adopt one engine, or run the whole stack on your own infrastructure with no SaaS dependency.
Structured PDF extraction API that turns complex files into consistent JSON.
The only writer in the stack — deterministic PDF rewrite, marks, imposition, and trapping.
Detection-only PDF preflight engine — 500+ checks plus the PDF/X-4 conformance suite.
Embeddable PDF viewer with separations, TAC, layers, and annotation overlays.
PDF assay and metadata reporting — surface what's actually inside the file.
WYSIWYG canvas editor for label and packaging artwork — PDF/X-4 output, flexo support, and a full create-to-RIP workflow.
API-first PDF orchestration layer — coordinates the full PWS stack via DAG pipelines (REST + SSE).