Marmalade Open Press

v1.4.0
io.github.easthillcc/marmalade-open-press Checked 1 hour ago Published 1 hour ago

HTML to print-ready CMYK PDF/X-4, PDF/X-1a, PDF/X-3 or TIFF, with K-only greys.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

html_to_print_pdf HTML to print-ready CMYK PDF

Turns an HTML page into a print-ready CMYK file for a commercial printer: PDF/X-4 by default, or PDF/X-1a, PDF/X-3 or CMYK TIFF. Chromium draws the page, every colour and image goes through the printer's ICC profile, and grey and black text stays on the black plate alone. The page size comes from the page's own CSS @page rule; a page without one prints on A5. The result is a JSON report: the files written, the trim size and the bleed in millimetres, the heaviest total ink, the lowest image resolution, warnings, and rgbLeft, the list of what is still RGB. It is an error result when the run fail…

ParameterTypeDescription
input *stringThe page to print: the path of an HTML file, an http or https URL, or HTML markup (a string that starts with "<"). Markup has no folder of its own, so its images and stylesheets need absolute URLs or…
output *stringWhere to write the file: an absolute path. A relative one is read from the folder the client starts the server in, which may be / where nothing can be written, so give absolute paths for output, input…
bleednumberThe bleed in millimetres on every side: the extra edge that is printed and then trimmed off, usually 3. It sets the trim box. A page that names its own @page size must already include the bleed (A5 wi…
coloursstringA colour table that gives chosen colours exact inks: the preset name "classic", or the path of a JSON file of entries such as {"name": "Brand orange", "hex": "#F07D00", "cmyk": [0, 60, 100, 0]}. An ab…
dpinumberThe resolution of TIFF pages, and of the pages that x1a and x3 had to flatten. Default 300; 600 keeps small text readable. Not used with x4.
enginestringWhat draws the pages of x1a, x3 and tiff. native is the default and needs nothing else. Give ghostscript only when a run fails with the code RASTER_UNSUPPORTED: Ghostscript must then be on the machine…
formatstringThe output format. x4 (PDF/X-4) is the default. The others are x1a (PDF/X-1a:2001), x3 (PDF/X-3:2002) and tiff (one CMYK TIFF per page). x1a and x3 cannot hold transparency: a page that uses opacity,…
profilestringThe path of the printer's CMYK ICC profile, a .icc file. An absolute path, inside the server's folder when it has one. Ask the printer which one. Without it a stand-in profile is used, the report says…
underlayarrayPercentages of cyan, magenta and yellow kept under every grey and black, such as [3, 2, 2], so that a plate that drifts shows no bare paper around letters on a tint. The values come from the printer.…