The device a file's colours are meant for
The output intent a file carries, printed on the page it describes: the printing conditions, their description and the profile behind them, with a ramp and one swatch per ink painted through that same profile. Hand a press profile on the command line and the page is drawn in that press's inks instead.
A page that fills a rectangle with four numbers has said four numbers and nothing at all about what colour they make. The output intent is the answer: the profile of the device the job was prepared for, travelling inside the file, together with the name of the printing conditions it was prepared for.
A file that declares itself made for archiving is obliged to state one, so this is a piece every PDF/A file needs. The page prints the intent it carries and paints a ramp and one swatch per ink through that same profile; hand it a press profile on the command line and it is drawn in that press's inks instead.
What this example shows
- An ICC profile embedded as the file's output intent.
- The printing conditions and their description, written into the file.
- The intent printed on the page it applies to.
The code, in full
The same document is written twice, once in each language. Both files are shown in full, with the code coloured on the server, and can be copied in one click.
The document itself
The same document is written in each of these languages. Open the one you want to look at.
Open the document in English
Open the document in French
Read the Rust source
Read the Python source