Skip to main content

CompilePDF white-underbase producer — white-ink / underbase plate generation for PDFs.

Project description

compile-pdf-white-underbase

CompilePDF white / underbase producer — generates a named white-ink (or underbase / varnish / foil) separation plate for an input PDF.

Given an input PDF plus a policy describing how to derive the plate, the producer registers a named DeviceN white separation in the output PDF. White printing on transparent / dark substrates (labels, garment prints, foil-stamped artwork) needs a white plate that lays down under every printable element; screen-printing on dark fabric needs an underbase plate so the coloured inks read true. Auto-generating the plate from the existing artwork keeps it in register at every revision.

Like the other producers it is content-addressed (deterministic cache key) and its router mounts into the central compile-pdf app, gated by COMPILE_PRODUCER.

Engine status: today's engine is a passthrough — it returns the input bytes verbatim with a fully-populated summary. The wire contract (request / response shape, cache-key derivation) is final so hosts can wire UI today; the underbase tracer lands in a follow-up.

Part of the CompilePDF producer family; each producer lives in its own repo and PyPI package. See compile-pdf for the orchestrator that mounts them.

Install

uv pip install compile-pdf-white-underbase

HTTP surface

Mounted under /v1/white-underbase by the host app:

  • POST /v1/white-underbase/apply{ input_pdf_b64, policy? } → the output PDF (base64), content hashes, cache key, and a generation summary.

CLI

compile-pdf-white-underbase [--policy policy.json] [--no-verify] in.pdf out.pdf

License

AGPL-3.0-or-later. Copyright © 2024–2026 Print with Synergy.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

compile_pdf_white_underbase-0.1.0.tar.gz (97.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

compile_pdf_white_underbase-0.1.0-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file compile_pdf_white_underbase-0.1.0.tar.gz.

File metadata

File hashes

Hashes for compile_pdf_white_underbase-0.1.0.tar.gz
Algorithm Hash digest
SHA256 085658faa877e7f8f55c958810a0a013805aac5f06b06e9b641bdd2574d57660
MD5 6e416d3ad43b0185711169240dca0794
BLAKE2b-256 5fa6191433ea2c76b9313593df470b19ece57978412d51ebb97d3b436298069e

See more details on using hashes here.

File details

Details for the file compile_pdf_white_underbase-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for compile_pdf_white_underbase-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63585b820e0aeed1890a347fe624ededd343658aed1ec5b387f1647e0cd89f03
MD5 aa0ad0e3eb53d6b100692060aada3e94
BLAKE2b-256 3a6cbfe4046d9ba1d0fce4f4d4bfe41666cc68dd9f809715f669d455844b1f39

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page