write_own_notes.json

The JSON file of the “The notes a program leaves itself” example. A press proof carrying the run on the file, the plate on the page and the ink on the colour bar placed twice. None of it is drawn and no reading software shows it: it is there for the program that wrote it.

JSON 184 lines

This file is a request: an application sends it over the network to the server, which creates the PDF and sends it back. It makes the same page as the Rust and Python versions of this example. A request names every file it uses, never its content; the call carries the request and the files together. A font the server already holds, such as DejaVuSans, is named with nothing attached. Send the request to the address the API page gives.

What this example is for

A press room sends a proof out and gets it back three days later with a pencil note in the margin. To pick the job up again it has to know which run the sheet belongs to, which plate the page was set for, and which ink the colour bar was drawn against — and none of that is anything the person holding the sheet should be shown. So it travels under the document instead of on it: the file carries the run, the page carries its plate, and the colour bar, placed twice on that page, carries the ink it was set against.

What this example shows

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
{
  "items": [
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 780.0,
        "urx": 539.0,
        "ury": 799.2
      },
      "content": [
        "Press proof"
      ],
      "font": "DejaVuSans",
      "font_size": 16.0
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 658.0,
        "urx": 539.0,
        "ury": 770.0
      },
      "content": [
        "This sheet is a proof, and everything a reading software shows of it is on it: a title, this paragraph, and a colour bar placed twice. Under it the file states the run it belongs to, the page states the plate it was set for, and the bar states the ink it was drawn against."
      ],
      "font": "DejaVuSans",
      "font_size": 10.0,
      "leading": 14.0
    },
    {
      "type": "drawing",
      "drawing": "bar",
      "x": 56.0,
      "y": 672.0,
      "scale": 1.0
    },
    {
      "type": "drawing",
      "drawing": "bar",
      "x": 56.0,
      "y": 616.0,
      "scale": 0.5
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 464.8,
        "urx": 539.0,
        "ury": 560.0
      },
      "content": [
        "None of those three is drawn, and no reading software shows them. Each is filed under the name of the program that left it, stamped with the moment that program last touched it, and travels with the file until it opens the file again."
      ],
      "font": "DejaVuSans",
      "font_size": 8.5,
      "leading": 11.899999999999999,
      "color": [
        0.35,
        0.35,
        0.35
      ]
    }
  ],
  "private_data": {
    "program": "PressDesk",
    "modified": "2026-09-07T08:15:00+02:00",
    "private": "{\"run\":47,\"press\":\"K4\",\"proof\":3}"
  },
  "page_private_data": [
    {
      "page": 1,
      "private_data": {
        "program": "PressDesk",
        "modified": "2026-09-07T08:15:00+02:00",
        "private": "{\"plate\":\"C\",\"screen\":175}"
      }
    }
  ],
  "drawings": [
    {
      "name": "bar",
      "box": {
        "llx": 0.0,
        "lly": 0.0,
        "urx": 168.0,
        "ury": 18.0
      },
      "items": [
        {
          "type": "rect",
          "rect": {
            "llx": 0.0,
            "lly": 0.0,
            "urx": 28.0,
            "ury": 18.0
          },
          "fill": [
            0.85,
            0.9775,
            1.0
          ]
        },
        {
          "type": "rect",
          "rect": {
            "llx": 28.0,
            "lly": 0.0,
            "urx": 56.0,
            "ury": 18.0
          },
          "fill": [
            0.7,
            0.955,
            1.0
          ]
        },
        {
          "type": "rect",
          "rect": {
            "llx": 56.0,
            "lly": 0.0,
            "urx": 84.0,
            "ury": 18.0
          },
          "fill": [
            0.55,
            0.9325,
            1.0
          ]
        },
        {
          "type": "rect",
          "rect": {
            "llx": 84.0,
            "lly": 0.0,
            "urx": 112.0,
            "ury": 18.0
          },
          "fill": [
            0.4,
            0.91,
            1.0
          ]
        },
        {
          "type": "rect",
          "rect": {
            "llx": 112.0,
            "lly": 0.0,
            "urx": 140.0,
            "ury": 18.0
          },
          "fill": [
            0.19999999999999996,
            0.88,
            1.0
          ]
        },
        {
          "type": "rect",
          "rect": {
            "llx": 140.0,
            "lly": 0.0,
            "urx": 168.0,
            "ury": 18.0
          },
          "fill": [
            0.0,
            0.85,
            1.0
          ]
        }
      ],
      "private_data": {
        "program": "PressDesk",
        "modified": "2026-09-07T08:15:00+02:00",
        "private": "{\"ink\":\"process cyan\",\"bar\":\"solid\"}"
      }
    }
  ]
}