mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Save As / Save a Copy / file.saveACopy / doc.save to .pdf write every spot channel as an 8-bit Flate image XObject in a [/Separation /<channel name> /DeviceCMYK <tint transform>] colour space, painted after the flattened image in channel order with overprint on (/OP true /op true), so a RIP or Ghostscript's tiffsep/psdcmyk keeps each one as a named plate. 1 = solid ink, as the document stores it; the alternate is the ink colour separated to CMYK (preview only). A Multichannel document saves as its plates alone (an alpha-type channel as the black ink the composite shows, 1 - value). Each plate carries a 1-bit stencil mask so viewers without overprint preview still show every plate (a colour-key /Mask range renders blank in Quartz). No marks, labels, halftone screens or transparency. "pdfSpotPlates": false on scripted saves writes the image only. Tests: 5 new io pdf tests (structure, overprint and order, polarity, Multichannel, name escaping, stencil bits, opt-out, 16-bit) and an engine save_a_copy test for the param. Docs: file-format-parity, gaps G10, control-protocol. Co-Authored-By: Claude Fable 5.1 <[email protected]>