The device one page's colours are stated for

Name a press for one page alone, where the cover and the inside are not printed on the same paper.

Summary

One file, two papers: the cover on glossy card, the inside on ordinary paper. The same red does not come out the same on the two, and the printer has to be told which page goes on which. Each page carries the name of its own paper, and the pages that carry nothing keep the one the whole document states.

Technically

Written at the top level of a request, under "page_output_intents"

page_output_intents writes the /OutputIntents of a page: the same statement the document makes, made by the page. Reading software that honours these statements uses the page's own wherever the page states one, and the document's everywhere else. The entry belongs to PDF 2.0, so the file is written on 2.0 or the render is refused. Three claims write it on 2.0 with no version key of their own: archive pdfa4, archive pdfa4f and accessible pdfua2. A request making none of them states version 2.0 itself, and a document claiming an archiving part built on an older version cannot carry an entry at all. The profile arrives as a supplied part, as the document's own does. The print standard is written on PDF 1.6, so a request claiming print states one only beside one of those three claims, which carry the file onto 2.0; there each page stated for a device is stated for a press, and a page stated for a screen is refused.

Request schema

  • page_output_intents — array, optional, empty by default.
  • page_output_intents[].page — integer ≥ 1, required. The page this device is for.
  • page_output_intents[].profile — string, optional. The name of the supplied part carrying the ICC profile. Absent, the library writes the sRGB profile it carries.
  • page_output_intents[].space — string, optional. The space the profile describes. Three values: gray, rgb, cmyk.
  • page_output_intents[].identifier — string, required. The short name the condition is registered or known under.
  • page_output_intents[].info — string, optional, empty by default. The sentence a person reads to tell one condition from another.

A page named twice takes the last entry given for it, whole, and a page nothing names keeps the device the document states.

A whole request that creates a PDF

{
  "version": "2.0",
  "output_intent": {
    "identifier": "sRGB",
    "info": "the screen the cover was chosen for"
  },
  "page_output_intents": [
    {
      "page": 2,
      "identifier": "sRGB IEC61966-2.1",
      "info": "the inside, stated for itself"
    }
  ],
  "standard_fonts": [{ "name": "sans", "face": "helvetica" }],
  "items": [
    {
      "type": "text",
      "rect": { "llx": 60, "lly": 740, "urx": 535, "ury": 765 },
      "content": ["The cover, stated for what the document states"],
      "font": "sans",
      "font_size": 14,
      "pages": [1]
    },
    {
      "type": "text",
      "rect": { "llx": 60, "lly": 740, "urx": 535, "ury": 765 },
      "content": ["The inside, stated for itself"],
      "font": "sans",
      "font_size": 14,
      "pages": [2]
    }
  ]
}

The line that sends it, in three languages

Colour and how it is shown

The device the colours are stated for Which plate of a separated sheet a page is Declaring colour beyond red, green and blue What a page's bare numbers mean A colour sliding into another Opacity, mixing, and what a press asks for A cell repeated to fill a shape The space a page mixes its colours in

Where to go next

Every JSON key of a request, in one page The other forty-one settings of a request

See the prices See the examples