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.1.tar.gz (97.1 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.1-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for compile_pdf_white_underbase-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a20736024659e4332430aae52370ff31e4e8c7c967e715a3e6a9cecd16953a85
MD5 30074cea597fc50692ec8fb564f940b0
BLAKE2b-256 abf02f154c0782ce87fe4457f82c2848f6a601d9cb8a54d6ad20d791d6562124

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for compile_pdf_white_underbase-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7f6f103bdf3940f0274d7860d3965d175fd8512fa98e744156b6edcf8aa62e8
MD5 5730cc4882ec107648cc4f045a748a1c
BLAKE2b-256 abc2b2b4a89bf73fe4a9252da9f1b3b8cfb4e610e6fd49c426a3941b207eff4a

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