@laminapdf/sdk 0.0.0-stage → 0.2.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +208 -2
- package/dist/api.d.ts +23 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +11 -0
- package/dist/api.js.map +1 -0
- package/dist/builder.d.ts +319 -0
- package/dist/builder.d.ts.map +1 -0
- package/dist/builder.js +540 -0
- package/dist/builder.js.map +1 -0
- package/dist/defined.d.ts +5 -0
- package/dist/defined.d.ts.map +1 -0
- package/dist/defined.js +7 -0
- package/dist/defined.js.map +1 -0
- package/dist/document.d.ts +241 -0
- package/dist/document.d.ts.map +1 -0
- package/dist/document.js +427 -0
- package/dist/document.js.map +1 -0
- package/dist/entry/node.d.ts +30 -0
- package/dist/entry/node.d.ts.map +1 -0
- package/dist/entry/node.js +37 -0
- package/dist/entry/node.js.map +1 -0
- package/dist/entry/workerd.d.ts +30 -0
- package/dist/entry/workerd.d.ts.map +1 -0
- package/dist/entry/workerd.js +37 -0
- package/dist/entry/workerd.js.map +1 -0
- package/dist/errors.d.ts +102 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +137 -0
- package/dist/errors.js.map +1 -0
- package/dist/explain.d.ts +20 -0
- package/dist/explain.d.ts.map +1 -0
- package/dist/explain.js +14 -0
- package/dist/explain.js.map +1 -0
- package/dist/font.d.ts +66 -0
- package/dist/font.d.ts.map +1 -0
- package/dist/font.js +103 -0
- package/dist/font.js.map +1 -0
- package/dist/generated/builder-enums.d.ts +29 -0
- package/dist/generated/builder-enums.d.ts.map +1 -0
- package/dist/generated/builder-enums.js +80 -0
- package/dist/generated/builder-enums.js.map +1 -0
- package/dist/generated/codes.d.ts +97 -0
- package/dist/generated/codes.d.ts.map +1 -0
- package/dist/generated/codes.js +453 -0
- package/dist/generated/codes.js.map +1 -0
- package/dist/generated/explain.d.ts +6 -0
- package/dist/generated/explain.d.ts.map +1 -0
- package/dist/generated/explain.js +138 -0
- package/dist/generated/explain.js.map +1 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +37 -0
- package/dist/index.js.map +1 -0
- package/dist/init.d.ts +80 -0
- package/dist/init.d.ts.map +1 -0
- package/dist/init.js +127 -0
- package/dist/init.js.map +1 -0
- package/dist/loader/fetch.d.ts +3 -0
- package/dist/loader/fetch.d.ts.map +1 -0
- package/dist/loader/fetch.js +2 -0
- package/dist/loader/fetch.js.map +1 -0
- package/dist/loader/node.d.ts +3 -0
- package/dist/loader/node.d.ts.map +1 -0
- package/dist/loader/node.js +9 -0
- package/dist/loader/node.js.map +1 -0
- package/dist/loader/workerd.d.ts +3 -0
- package/dist/loader/workerd.d.ts.map +1 -0
- package/dist/loader/workerd.js +15 -0
- package/dist/loader/workerd.js.map +1 -0
- package/dist/matrix.d.ts +16 -0
- package/dist/matrix.d.ts.map +1 -0
- package/dist/matrix.js +36 -0
- package/dist/matrix.js.map +1 -0
- package/dist/path.d.ts +34 -0
- package/dist/path.d.ts.map +1 -0
- package/dist/path.js +49 -0
- package/dist/path.js.map +1 -0
- package/dist/source/http.d.ts +36 -0
- package/dist/source/http.d.ts.map +1 -0
- package/dist/source/http.js +211 -0
- package/dist/source/http.js.map +1 -0
- package/dist/source/range.d.ts +70 -0
- package/dist/source/range.d.ts.map +1 -0
- package/dist/source/range.js +96 -0
- package/dist/source/range.js.map +1 -0
- package/dist/text.d.ts +90 -0
- package/dist/text.d.ts.map +1 -0
- package/dist/text.js +127 -0
- package/dist/text.js.map +1 -0
- package/dist/transaction.d.ts +36 -0
- package/dist/transaction.d.ts.map +1 -0
- package/dist/transaction.js +47 -0
- package/dist/transaction.js.map +1 -0
- package/dist/types.d.ts +79 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/version.d.ts +3 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +6 -0
- package/dist/version.js.map +1 -0
- package/dist/worker/client.d.ts +87 -0
- package/dist/worker/client.d.ts.map +1 -0
- package/dist/worker/client.js +405 -0
- package/dist/worker/client.js.map +1 -0
- package/dist/worker/emitter.d.ts +12 -0
- package/dist/worker/emitter.d.ts.map +1 -0
- package/dist/worker/emitter.js +34 -0
- package/dist/worker/emitter.js.map +1 -0
- package/dist/worker/entry.d.ts +2 -0
- package/dist/worker/entry.d.ts.map +1 -0
- package/dist/worker/entry.js +4 -0
- package/dist/worker/entry.js.map +1 -0
- package/dist/worker/index.d.ts +7 -0
- package/dist/worker/index.d.ts.map +1 -0
- package/dist/worker/index.js +4 -0
- package/dist/worker/index.js.map +1 -0
- package/dist/worker/protocol.d.ts +82 -0
- package/dist/worker/protocol.d.ts.map +1 -0
- package/dist/worker/protocol.js +11 -0
- package/dist/worker/protocol.js.map +1 -0
- package/dist/worker/server.d.ts +51 -0
- package/dist/worker/server.d.ts.map +1 -0
- package/dist/worker/server.js +460 -0
- package/dist/worker/server.js.map +1 -0
- package/dist/worker/support.d.ts +39 -0
- package/dist/worker/support.d.ts.map +1 -0
- package/dist/worker/support.js +25 -0
- package/dist/worker/support.js.map +1 -0
- package/dist/worker/transfer.d.ts +3 -0
- package/dist/worker/transfer.d.ts.map +1 -0
- package/dist/worker/transfer.js +13 -0
- package/dist/worker/transfer.js.map +1 -0
- package/dist/worker/types.d.ts +43 -0
- package/dist/worker/types.d.ts.map +1 -0
- package/dist/worker/types.js +2 -0
- package/dist/worker/types.js.map +1 -0
- package/package.json +91 -3
- package/schemas/error.schema.json +288 -0
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
// @generated by cargo xtask gen codes. DO NOT EDIT.
|
|
2
|
+
// From fixtures/codes.json (ADR 0026 §3); `cargo xtask check docs` fails when it is stale.
|
|
3
|
+
/** Every error code, in `codes.json` order. */
|
|
4
|
+
export const ERROR_CODES = [
|
|
5
|
+
"not-pdf",
|
|
6
|
+
"missing-root",
|
|
7
|
+
"reference-cycle",
|
|
8
|
+
"limit-exceeded",
|
|
9
|
+
"strict",
|
|
10
|
+
"data-pending",
|
|
11
|
+
"source",
|
|
12
|
+
"type",
|
|
13
|
+
"invalid-structure",
|
|
14
|
+
"unset-object",
|
|
15
|
+
"repaired-base",
|
|
16
|
+
"encrypted-base",
|
|
17
|
+
"password-required",
|
|
18
|
+
"wrong-password",
|
|
19
|
+
"unsupported-security-handler",
|
|
20
|
+
"unexpected-eof",
|
|
21
|
+
"syntax",
|
|
22
|
+
"unsupported-filter",
|
|
23
|
+
"decompress",
|
|
24
|
+
"nested-transaction",
|
|
25
|
+
"no-transaction",
|
|
26
|
+
"unknown-page",
|
|
27
|
+
"direct-page",
|
|
28
|
+
"unsupported-version",
|
|
29
|
+
"invalid-op-log",
|
|
30
|
+
"saved-not-rebased",
|
|
31
|
+
"no-pending-save",
|
|
32
|
+
"sink",
|
|
33
|
+
"not-rebased",
|
|
34
|
+
"sink-not-empty",
|
|
35
|
+
"would-invalidate-signatures",
|
|
36
|
+
"requires-rewrite",
|
|
37
|
+
"invalid-font",
|
|
38
|
+
"collection-index",
|
|
39
|
+
"unknown-axis",
|
|
40
|
+
"font-not-embeddable",
|
|
41
|
+
"missing-glyph",
|
|
42
|
+
"glyph-out-of-range",
|
|
43
|
+
"unknown-font",
|
|
44
|
+
"subset-failed",
|
|
45
|
+
"invalid-axis-value",
|
|
46
|
+
"wrong-document",
|
|
47
|
+
"invalid-feature",
|
|
48
|
+
"invalid-text-range",
|
|
49
|
+
"unsupported-layout-option",
|
|
50
|
+
"font-mismatch",
|
|
51
|
+
"encoding-full",
|
|
52
|
+
"font-not-shapable",
|
|
53
|
+
"invalid-image",
|
|
54
|
+
"unsupported-image",
|
|
55
|
+
"image-too-large",
|
|
56
|
+
"image-data-length",
|
|
57
|
+
"invalid-icc-profile",
|
|
58
|
+
"color-components",
|
|
59
|
+
"invalid-color",
|
|
60
|
+
"invalid-geometry",
|
|
61
|
+
"text-overflow",
|
|
62
|
+
"page-index-out-of-range",
|
|
63
|
+
"unknown-destination",
|
|
64
|
+
"invalid-page-labels",
|
|
65
|
+
"profile-version-conflict",
|
|
66
|
+
"missing-title",
|
|
67
|
+
"missing-lang",
|
|
68
|
+
"missing-alt-text",
|
|
69
|
+
"untagged-content",
|
|
70
|
+
"heading-level-skipped",
|
|
71
|
+
"unnumbered-heading-misused",
|
|
72
|
+
"invalid-structure-nesting",
|
|
73
|
+
"link-without-structure",
|
|
74
|
+
"link-without-contents",
|
|
75
|
+
"font-not-embedded",
|
|
76
|
+
"glyph-without-unicode",
|
|
77
|
+
"device-color-without-output-intent",
|
|
78
|
+
"embedded-file-forbidden",
|
|
79
|
+
"embedded-file-without-mime-type",
|
|
80
|
+
"render-too-large",
|
|
81
|
+
"render-failed",
|
|
82
|
+
"render-backend-unavailable",
|
|
83
|
+
"cancelled",
|
|
84
|
+
"job-finished",
|
|
85
|
+
"document-changed",
|
|
86
|
+
"builder-finished",
|
|
87
|
+
"invalid-argument",
|
|
88
|
+
"source-budget-exceeded",
|
|
89
|
+
"unknown-option",
|
|
90
|
+
"already-initialized",
|
|
91
|
+
"extract-module-not-loaded",
|
|
92
|
+
"fetch-failed",
|
|
93
|
+
"not-initialized",
|
|
94
|
+
"source-changed",
|
|
95
|
+
"text-module-not-loaded",
|
|
96
|
+
"disposed",
|
|
97
|
+
"worker-version-mismatch",
|
|
98
|
+
"worker-crashed",
|
|
99
|
+
"worker-failed",
|
|
100
|
+
];
|
|
101
|
+
/** Every warning code, in `codes.json` order. */
|
|
102
|
+
export const WARNING_CODES = [
|
|
103
|
+
"missing-header",
|
|
104
|
+
"xref-repaired",
|
|
105
|
+
"xrefstm-ignored",
|
|
106
|
+
"stream-length-recovered",
|
|
107
|
+
"stale-generation",
|
|
108
|
+
"page-tree-node-skipped",
|
|
109
|
+
"page-count-mismatch",
|
|
110
|
+
"flate-truncated",
|
|
111
|
+
"objstm-index-mismatch",
|
|
112
|
+
"object-number-out-of-range",
|
|
113
|
+
"aes-padding-invalid",
|
|
114
|
+
"perms-mismatch",
|
|
115
|
+
"warnings-truncated",
|
|
116
|
+
"invalid-box",
|
|
117
|
+
"invalid-rotate",
|
|
118
|
+
"name-tree-node-skipped",
|
|
119
|
+
"outline-cycle",
|
|
120
|
+
"outline-item-skipped",
|
|
121
|
+
"invalid-date",
|
|
122
|
+
"invalid-page-label",
|
|
123
|
+
"invalid-entry",
|
|
124
|
+
"content-unknown-operator",
|
|
125
|
+
"content-bad-operands",
|
|
126
|
+
"content-unbalanced-q",
|
|
127
|
+
"content-unbalanced-bt",
|
|
128
|
+
"content-unbalanced-marked",
|
|
129
|
+
"content-syntax",
|
|
130
|
+
"content-resource-missing",
|
|
131
|
+
"inline-image-unterminated",
|
|
132
|
+
"xobject-cycle",
|
|
133
|
+
"content-path-unpainted",
|
|
134
|
+
"font-invalid",
|
|
135
|
+
"cmap-invalid",
|
|
136
|
+
"unmapped-glyph",
|
|
137
|
+
"tounicode-conflict",
|
|
138
|
+
"whole-font-rebuilt",
|
|
139
|
+
];
|
|
140
|
+
/** The kind of every code. */
|
|
141
|
+
export const KINDS = {
|
|
142
|
+
"missing-header": "input",
|
|
143
|
+
"xref-repaired": "input",
|
|
144
|
+
"xrefstm-ignored": "input",
|
|
145
|
+
"stream-length-recovered": "input",
|
|
146
|
+
"stale-generation": "input",
|
|
147
|
+
"page-tree-node-skipped": "input",
|
|
148
|
+
"page-count-mismatch": "input",
|
|
149
|
+
"flate-truncated": "input",
|
|
150
|
+
"objstm-index-mismatch": "input",
|
|
151
|
+
"object-number-out-of-range": "limit",
|
|
152
|
+
"aes-padding-invalid": "security",
|
|
153
|
+
"perms-mismatch": "security",
|
|
154
|
+
"warnings-truncated": "limit",
|
|
155
|
+
"invalid-box": "input",
|
|
156
|
+
"invalid-rotate": "input",
|
|
157
|
+
"name-tree-node-skipped": "input",
|
|
158
|
+
"outline-cycle": "input",
|
|
159
|
+
"outline-item-skipped": "input",
|
|
160
|
+
"invalid-date": "input",
|
|
161
|
+
"invalid-page-label": "input",
|
|
162
|
+
"invalid-entry": "input",
|
|
163
|
+
"content-unknown-operator": "input",
|
|
164
|
+
"content-bad-operands": "input",
|
|
165
|
+
"content-unbalanced-q": "input",
|
|
166
|
+
"content-unbalanced-bt": "input",
|
|
167
|
+
"content-unbalanced-marked": "input",
|
|
168
|
+
"content-syntax": "input",
|
|
169
|
+
"content-resource-missing": "input",
|
|
170
|
+
"inline-image-unterminated": "input",
|
|
171
|
+
"xobject-cycle": "input",
|
|
172
|
+
"content-path-unpainted": "input",
|
|
173
|
+
"font-invalid": "input",
|
|
174
|
+
"cmap-invalid": "input",
|
|
175
|
+
"unmapped-glyph": "input",
|
|
176
|
+
"not-pdf": "input",
|
|
177
|
+
"missing-root": "input",
|
|
178
|
+
"reference-cycle": "input",
|
|
179
|
+
"limit-exceeded": "limit",
|
|
180
|
+
"strict": "input",
|
|
181
|
+
"data-pending": "state",
|
|
182
|
+
"source": "io",
|
|
183
|
+
"type": "input",
|
|
184
|
+
"invalid-structure": "input",
|
|
185
|
+
"unset-object": "internal",
|
|
186
|
+
"repaired-base": "state",
|
|
187
|
+
"encrypted-base": "unsupported",
|
|
188
|
+
"password-required": "security",
|
|
189
|
+
"wrong-password": "security",
|
|
190
|
+
"unsupported-security-handler": "unsupported",
|
|
191
|
+
"unexpected-eof": "input",
|
|
192
|
+
"syntax": "input",
|
|
193
|
+
"unsupported-filter": "unsupported",
|
|
194
|
+
"decompress": "input",
|
|
195
|
+
"nested-transaction": "state",
|
|
196
|
+
"no-transaction": "state",
|
|
197
|
+
"unknown-page": "usage",
|
|
198
|
+
"direct-page": "unsupported",
|
|
199
|
+
"unsupported-version": "unsupported",
|
|
200
|
+
"invalid-op-log": "input",
|
|
201
|
+
"saved-not-rebased": "state",
|
|
202
|
+
"no-pending-save": "state",
|
|
203
|
+
"sink": "io",
|
|
204
|
+
"not-rebased": "state",
|
|
205
|
+
"sink-not-empty": "usage",
|
|
206
|
+
"would-invalidate-signatures": "security",
|
|
207
|
+
"requires-rewrite": "state",
|
|
208
|
+
"invalid-font": "input",
|
|
209
|
+
"collection-index": "usage",
|
|
210
|
+
"unknown-axis": "usage",
|
|
211
|
+
"font-not-embeddable": "usage",
|
|
212
|
+
"missing-glyph": "input",
|
|
213
|
+
"glyph-out-of-range": "usage",
|
|
214
|
+
"unknown-font": "usage",
|
|
215
|
+
"subset-failed": "unsupported",
|
|
216
|
+
"invalid-axis-value": "usage",
|
|
217
|
+
"wrong-document": "usage",
|
|
218
|
+
"invalid-feature": "usage",
|
|
219
|
+
"invalid-text-range": "usage",
|
|
220
|
+
"unsupported-layout-option": "unsupported",
|
|
221
|
+
"font-mismatch": "usage",
|
|
222
|
+
"encoding-full": "limit",
|
|
223
|
+
"font-not-shapable": "unsupported",
|
|
224
|
+
"tounicode-conflict": "usage",
|
|
225
|
+
"whole-font-rebuilt": "usage",
|
|
226
|
+
"invalid-image": "input",
|
|
227
|
+
"unsupported-image": "unsupported",
|
|
228
|
+
"image-too-large": "limit",
|
|
229
|
+
"image-data-length": "usage",
|
|
230
|
+
"invalid-icc-profile": "input",
|
|
231
|
+
"color-components": "usage",
|
|
232
|
+
"invalid-color": "usage",
|
|
233
|
+
"invalid-geometry": "usage",
|
|
234
|
+
"text-overflow": "usage",
|
|
235
|
+
"page-index-out-of-range": "usage",
|
|
236
|
+
"unknown-destination": "usage",
|
|
237
|
+
"invalid-page-labels": "usage",
|
|
238
|
+
"profile-version-conflict": "usage",
|
|
239
|
+
"missing-title": "usage",
|
|
240
|
+
"missing-lang": "usage",
|
|
241
|
+
"missing-alt-text": "usage",
|
|
242
|
+
"untagged-content": "usage",
|
|
243
|
+
"heading-level-skipped": "usage",
|
|
244
|
+
"unnumbered-heading-misused": "usage",
|
|
245
|
+
"invalid-structure-nesting": "usage",
|
|
246
|
+
"link-without-structure": "usage",
|
|
247
|
+
"link-without-contents": "usage",
|
|
248
|
+
"font-not-embedded": "usage",
|
|
249
|
+
"glyph-without-unicode": "usage",
|
|
250
|
+
"device-color-without-output-intent": "usage",
|
|
251
|
+
"embedded-file-forbidden": "usage",
|
|
252
|
+
"embedded-file-without-mime-type": "usage",
|
|
253
|
+
"render-too-large": "limit",
|
|
254
|
+
"render-failed": "input",
|
|
255
|
+
"render-backend-unavailable": "io",
|
|
256
|
+
"cancelled": "cancelled",
|
|
257
|
+
"job-finished": "state",
|
|
258
|
+
"document-changed": "state",
|
|
259
|
+
"builder-finished": "state",
|
|
260
|
+
"invalid-argument": "usage",
|
|
261
|
+
"source-budget-exceeded": "limit",
|
|
262
|
+
"unknown-option": "usage",
|
|
263
|
+
"already-initialized": "state",
|
|
264
|
+
"extract-module-not-loaded": "state",
|
|
265
|
+
"fetch-failed": "io",
|
|
266
|
+
"not-initialized": "state",
|
|
267
|
+
"source-changed": "io",
|
|
268
|
+
"text-module-not-loaded": "state",
|
|
269
|
+
"disposed": "state",
|
|
270
|
+
"worker-version-mismatch": "usage",
|
|
271
|
+
"worker-crashed": "internal",
|
|
272
|
+
"worker-failed": "internal",
|
|
273
|
+
};
|
|
274
|
+
/** The hint of every code (ADR 0026 §5), with its `{limit}`/`{option}` parameters unfilled. */
|
|
275
|
+
export const HINTS = {
|
|
276
|
+
"missing-header": "nothing to do if the document reads correctly; open in strict mode to refuse such files",
|
|
277
|
+
"xref-repaired": "check the result; save with a full rewrite, since an incremental update refuses a repaired base",
|
|
278
|
+
"xrefstm-ignored": "nothing to do; the classic xref table is used instead",
|
|
279
|
+
"stream-length-recovered": "nothing to do; a full rewrite writes the correct length",
|
|
280
|
+
"stale-generation": "nothing to do; the reference is treated as missing",
|
|
281
|
+
"page-tree-node-skipped": "check the page count: pages under the skipped node are missing",
|
|
282
|
+
"page-count-mismatch": "nothing to do; Lamina PDF uses the walked page count",
|
|
283
|
+
"flate-truncated": "check the affected content: the end of the stream may be missing",
|
|
284
|
+
"objstm-index-mismatch": "nothing to do; a full rewrite writes a correct index",
|
|
285
|
+
"object-number-out-of-range": "raise max_object_number in Limits only if you trust the input",
|
|
286
|
+
"aes-padding-invalid": "treat the affected strings and streams as suspect: they may have been tampered with",
|
|
287
|
+
"perms-mismatch": "treat the document's permissions as untrusted",
|
|
288
|
+
"warnings-truncated": "raise max_warnings in Limits if you need the full list",
|
|
289
|
+
"invalid-box": "nothing to do; the page uses the next box in the fallback chain",
|
|
290
|
+
"invalid-rotate": "set the page rotation explicitly if 0 is wrong",
|
|
291
|
+
"name-tree-node-skipped": "check the tree's entries: those under the skipped node are missing",
|
|
292
|
+
"outline-cycle": "nothing to do; the outline is read without the loop",
|
|
293
|
+
"outline-item-skipped": "check the outline: the skipped item and its children are missing",
|
|
294
|
+
"invalid-date": "read the raw value from the Info view if you need it",
|
|
295
|
+
"invalid-page-label": "nothing to do; affected pages fall back to decimal labels",
|
|
296
|
+
"invalid-entry": "nothing to do; the view uses the entry's default",
|
|
297
|
+
"content-unknown-operator": "nothing to do; check the page's rendering if the operator mattered",
|
|
298
|
+
"content-bad-operands": "nothing to do; the operator was skipped or used its last operands",
|
|
299
|
+
"content-unbalanced-q": "nothing to do; the graphics state was restored as the spec intends",
|
|
300
|
+
"content-unbalanced-bt": "nothing to do; text operators outside a text object were handled tolerantly",
|
|
301
|
+
"content-unbalanced-marked": "check tagged-content results: marked-content sequences were closed for you",
|
|
302
|
+
"content-syntax": "check the page's content: the bytes around the reported offset were skipped",
|
|
303
|
+
"content-resource-missing": "check the page's resources: the operator ran without the resource or was skipped",
|
|
304
|
+
"inline-image-unterminated": "check the page's content: everything after the inline image is missing",
|
|
305
|
+
"xobject-cycle": "nothing to do; the inner Do was skipped",
|
|
306
|
+
"content-path-unpainted": "nothing to do; the unpainted path was dropped as the spec intends",
|
|
307
|
+
"font-invalid": "nothing to do; extracted text or positions for that font may be off",
|
|
308
|
+
"cmap-invalid": "nothing to do; the bad entries were skipped and the rest of the CMap is used",
|
|
309
|
+
"unmapped-glyph": "nothing to do; those glyphs extract as U+FFFD (the file needs a ToUnicode CMap)",
|
|
310
|
+
"not-pdf": "check that the bytes passed to open are a PDF file",
|
|
311
|
+
"missing-root": "use another copy of the file: this one has no usable catalog",
|
|
312
|
+
"reference-cycle": "use another copy of the file, or repair it with another tool",
|
|
313
|
+
"limit-exceeded": "the input exceeds a safety limit; raise {limit} in Limits only if you trust the input",
|
|
314
|
+
"strict": "open without strict mode to read the file with repairs, or fix the file",
|
|
315
|
+
"data-pending": "fetch the listed ranges into the source and retry the call",
|
|
316
|
+
"source": "retry the call, or check the source; the document stays usable",
|
|
317
|
+
"type": "use another copy of the file, or repair it with another tool",
|
|
318
|
+
"invalid-structure": "use another copy of the file, or repair it with another tool",
|
|
319
|
+
"unset-object": "this is a bug in Lamina PDF: report it with the steps that led to it",
|
|
320
|
+
"repaired-base": "save with a full rewrite instead of an incremental update",
|
|
321
|
+
"encrypted-base": "saving encrypted documents is not supported yet; use another tool to decrypt or re-encrypt",
|
|
322
|
+
"password-required": "pass the document's password in OpenOptions",
|
|
323
|
+
"wrong-password": "ask for the password again and retry with the correct one",
|
|
324
|
+
"unsupported-security-handler": "use a tool that supports this encryption to decrypt the file first",
|
|
325
|
+
"unexpected-eof": "use a complete copy of the file: this one looks truncated",
|
|
326
|
+
"syntax": "use another copy of the file, or repair it with another tool",
|
|
327
|
+
"unsupported-filter": "use a tool that supports the filter to read this stream",
|
|
328
|
+
"decompress": "use another copy of the file: this stream's data is damaged",
|
|
329
|
+
"nested-transaction": "commit or roll back the open transaction first, or use a savepoint inside it",
|
|
330
|
+
"no-transaction": "call begin first, or use transact",
|
|
331
|
+
"unknown-page": "use a PageId from this document's pages()",
|
|
332
|
+
"direct-page": "rewrite the file so that every page is an indirect object, or wait for page-structure ops",
|
|
333
|
+
"unsupported-version": "upgrade Lamina PDF to a version that reads this op log version",
|
|
334
|
+
"invalid-op-log": "validate the op log against the op schema; the samples in fixtures/ops show the format",
|
|
335
|
+
"saved-not-rebased": "call rebase with the saved bytes before applying ops or saving again",
|
|
336
|
+
"no-pending-save": "call rebase only after a save that returned SavedNotRebased",
|
|
337
|
+
"sink": "check the destination and retry the save; the document is unchanged",
|
|
338
|
+
"not-rebased": "retry rebase with the saved output carried by the error",
|
|
339
|
+
"sink-not-empty": "pass an empty sink: output offsets count from the sink's first byte",
|
|
340
|
+
"would-invalidate-signatures": "save with SaveMode::Auto, or ask the user and retry with SaveOptions::with_invalidate_signatures",
|
|
341
|
+
"requires-rewrite": "save with SaveMode::Auto or SaveMode::FullRewrite",
|
|
342
|
+
"invalid-font": "pass the complete bytes of a .ttf, .otf, .ttc or .otc file",
|
|
343
|
+
"collection-index": "use an index below Font::collection_len",
|
|
344
|
+
"unknown-axis": "check the font's axes before choosing coordinates, or use a variable font",
|
|
345
|
+
"font-not-embeddable": "use another font, or register it with EmbedPolicy::Override if your licence allows embedding",
|
|
346
|
+
"missing-glyph": "use a font that covers the character, or split the text across fonts",
|
|
347
|
+
"glyph-out-of-range": "pass glyph IDs from the font you registered",
|
|
348
|
+
"unknown-font": "use the key returned by this registry's add",
|
|
349
|
+
"subset-failed": "try another version or format of the font, and report the font if it is a common one",
|
|
350
|
+
"invalid-axis-value": "pass finite axis values; values outside the axis range are clamped",
|
|
351
|
+
"wrong-document": "use one FontRegistry per document and finish it with that document",
|
|
352
|
+
"invalid-feature": "write it as liga=0, -liga, smcp or aalt=2 (HarfBuzz syntax without ranges)",
|
|
353
|
+
"invalid-text-range": "take ranges from Lamina PDF's results (line_breaks, itemize, break_lines) and pass the same text",
|
|
354
|
+
"unsupported-layout-option": "leave the option at its default; justification comes with a later release",
|
|
355
|
+
"font-mismatch": "pass the key of the font the run was shaped with (the font index of each line run maps to your keys)",
|
|
356
|
+
"encoding-full": "embed a font with Font::from_bytes, or split the text across two registrations of the standard font",
|
|
357
|
+
"font-not-shapable": "draw standard 14 fonts with FontRegistry::encode, or shape with an embedded font",
|
|
358
|
+
"tounicode-conflict": "mark the second occurrence with /ActualText so extraction gets its text",
|
|
359
|
+
"whole-font-rebuilt": "check that the font's licence allows this, or use a static TrueType or CFF version",
|
|
360
|
+
"invalid-image": "pass the complete bytes of a JPEG or PNG file to Image::jpeg or Image::png",
|
|
361
|
+
"unsupported-image": "convert it to a baseline or progressive 8-bit JPEG, or to PNG",
|
|
362
|
+
"image-too-large": "scale the image down before adding it",
|
|
363
|
+
"image-data-length": "pass exactly 4 bytes (RGBA) per pixel, row by row",
|
|
364
|
+
"invalid-icc-profile": "pass a complete ICC profile with a Gray, RGB or CMYK data colour space",
|
|
365
|
+
"color-components": "give one component per channel of the colour space (/N of the ICC profile)",
|
|
366
|
+
"invalid-color": "write the colour as # followed by 3 or 6 hexadecimal digits",
|
|
367
|
+
"invalid-geometry": "use finite coordinates, positive page sizes and /UserUnit, non-negative line widths and dashes, a miter limit of at least 1, and images of at least one pixel",
|
|
368
|
+
"text-overflow": "make the box taller or the text shorter, or use Overflow::Clip and read TextLayout::overflow",
|
|
369
|
+
"page-index-out-of-range": "use a 0-based index below the document's page count",
|
|
370
|
+
"unknown-destination": "define it with Builder::destination before the build finishes, or link to a page",
|
|
371
|
+
"invalid-page-labels": "give ranges sorted by first page, the first at page 0, numbered from 1",
|
|
372
|
+
"profile-version-conflict": "leave the version at 1.7 (the default) or lower; PDF 2.0 needs PDF/A-4 or PDF/UA-2, which Lamina PDF doesn't write yet",
|
|
373
|
+
"missing-title": "set a title with Builder::metadata (Metadata::with_title)",
|
|
374
|
+
"missing-lang": "set the language with Builder::lang, such as \"en-GB\"",
|
|
375
|
+
"missing-alt-text": "give the figure or formula a description with Tag::with_alt or Surface::figure's alt, or draw decoration as an artifact",
|
|
376
|
+
"untagged-content": "draw it inside Surface::tag (real content) or Surface::artifact (decoration)",
|
|
377
|
+
"heading-level-skipped": "start with H1 and go down one level at a time",
|
|
378
|
+
"unnumbered-heading-misused": "use numbered headings (H1, H2, ...) throughout, or one H per section",
|
|
379
|
+
"invalid-structure-nesting": "nest tables as Table > TR > TH/TD and lists as L > LI > Lbl/LBody",
|
|
380
|
+
"link-without-structure": "draw links outside artifacts, so the builder gives each one a Link element",
|
|
381
|
+
"link-without-contents": "pass a description as the link's contents",
|
|
382
|
+
"font-not-embedded": "load a font file with Builder::font instead of Builder::standard_font",
|
|
383
|
+
"glyph-without-unicode": "use text whose glyphs each stand for characters, or choose PDF/A-2b, which doesn't need Unicode",
|
|
384
|
+
"device-color-without-output-intent": "use RGB or gray colours, or a CMYK colour with an ICC profile (Color::icc)",
|
|
385
|
+
"embedded-file-forbidden": "choose PDF/A-3b, which allows attached files of any kind",
|
|
386
|
+
"embedded-file-without-mime-type": "pass the file's MIME type, such as text/xml or application/octet-stream",
|
|
387
|
+
"render-too-large": "request smaller tiles (256 to 512 pixels at high zoom) or raise RenderLimits if the larger bitmap is intended",
|
|
388
|
+
"render-failed": "the file may be damaged or use a feature this engine can't draw; try the other backend, or report the file",
|
|
389
|
+
"render-backend-unavailable": "run cargo xtask fetch-pdfium or set LAMINA_PDF_PDFIUM_DIR to the folder holding the PDFium library",
|
|
390
|
+
"cancelled": "nothing to do: this is the outcome the caller asked for; start a new job to try again",
|
|
391
|
+
"job-finished": "stop stepping a job once a step returned its result or an error; create a new job",
|
|
392
|
+
"document-changed": "pass the document the job was created from, and don't change it while the job runs; create a new job",
|
|
393
|
+
"builder-finished": "create a new builder or page: a finished one takes no more drawing, pages, fonts or settings",
|
|
394
|
+
"invalid-argument": "pass the value the type declarations describe; the data field says what was wrong",
|
|
395
|
+
"source-budget-exceeded": "raise the source's budget, or open the file with fewer bytes fetched (smaller blocks, no readahead)",
|
|
396
|
+
"unknown-option": "remove the key or correct its spelling; didYouMean lists the closest known names",
|
|
397
|
+
"already-initialized": "call init and loadText with a source once, before the first load; later calls need no source",
|
|
398
|
+
"extract-module-not-loaded": "load the extract module (init with the extract option, or loadExtract) or the text module before opening the document",
|
|
399
|
+
"fetch-failed": "check that the URL is reachable and that the server sends the CORS headers range requests need (Content-Range must be exposed); data.reason and data.status say what failed",
|
|
400
|
+
"not-initialized": "await init() once before calling anything else in @laminapdf/sdk",
|
|
401
|
+
"source-changed": "open the file again; the document already read parts of the old version and can't mix in the new one",
|
|
402
|
+
"text-module-not-loaded": "load the text module with init and the text option, or with loadText, before creating the builder that draws text",
|
|
403
|
+
"disposed": "free a handle only after its last use; to keep working, open the document again or create a new builder",
|
|
404
|
+
"worker-version-mismatch": "serve the worker file from the same @laminapdf/sdk build as the page; don't load it from a CDN or an older deploy",
|
|
405
|
+
"worker-crashed": "call client.restart() and open the document again; report the file if it keeps happening",
|
|
406
|
+
"worker-failed": "this is a bug in Lamina PDF: report it with the call and the message; the worker keeps running",
|
|
407
|
+
};
|
|
408
|
+
/** `docsUrl` = base + code + suffix (ADR 0026 §6). */
|
|
409
|
+
export const DOCS_URL = { base: "https://github.com/laudebugs/laminapdf/blob/main/docs/errors/", suffix: ".md" };
|
|
410
|
+
/** The explain page of `code` (`docsUrl`, ADR 0026 §6). */
|
|
411
|
+
export function docsUrl(code) {
|
|
412
|
+
return `${DOCS_URL.base}${code}${DOCS_URL.suffix}`;
|
|
413
|
+
}
|
|
414
|
+
/** The groups of `codes.json` that list errors. */
|
|
415
|
+
export const ERROR_GROUPS = [
|
|
416
|
+
"errors",
|
|
417
|
+
"opErrors",
|
|
418
|
+
"saveErrors",
|
|
419
|
+
"textErrors",
|
|
420
|
+
"buildErrors",
|
|
421
|
+
"renderErrors",
|
|
422
|
+
"facadeErrors",
|
|
423
|
+
"bindingErrors",
|
|
424
|
+
"packageErrors",
|
|
425
|
+
];
|
|
426
|
+
/** The groups of `codes.json` that list warnings. */
|
|
427
|
+
export const WARNING_GROUPS = [
|
|
428
|
+
"warnings",
|
|
429
|
+
"textWarnings",
|
|
430
|
+
];
|
|
431
|
+
/** The groups whose codes only `@laminapdf/sdk` raises (not in the Rust enums or the WASM). */
|
|
432
|
+
export const TS_ONLY_GROUPS = [
|
|
433
|
+
"packageErrors",
|
|
434
|
+
];
|
|
435
|
+
/** Kind and hint of the codes `@laminapdf/sdk` raises itself (the WASM fills in the others). */
|
|
436
|
+
export const RAISED_BY_PACKAGE = {
|
|
437
|
+
"nested-transaction": { kind: "state", hint: "commit or roll back the open transaction first, or use a savepoint inside it" },
|
|
438
|
+
"no-transaction": { kind: "state", hint: "call begin first, or use transact" },
|
|
439
|
+
"cancelled": { kind: "cancelled", hint: "nothing to do: this is the outcome the caller asked for; start a new job to try again" },
|
|
440
|
+
"builder-finished": { kind: "state", hint: "create a new builder or page: a finished one takes no more drawing, pages, fonts or settings" },
|
|
441
|
+
"invalid-argument": { kind: "usage", hint: "pass the value the type declarations describe; the data field says what was wrong" },
|
|
442
|
+
"already-initialized": { kind: "state", hint: "call init and loadText with a source once, before the first load; later calls need no source" },
|
|
443
|
+
"extract-module-not-loaded": { kind: "state", hint: "load the extract module (init with the extract option, or loadExtract) or the text module before opening the document" },
|
|
444
|
+
"fetch-failed": { kind: "io", hint: "check that the URL is reachable and that the server sends the CORS headers range requests need (Content-Range must be exposed); data.reason and data.status say what failed" },
|
|
445
|
+
"not-initialized": { kind: "state", hint: "await init() once before calling anything else in @laminapdf/sdk" },
|
|
446
|
+
"source-changed": { kind: "io", hint: "open the file again; the document already read parts of the old version and can't mix in the new one" },
|
|
447
|
+
"text-module-not-loaded": { kind: "state", hint: "load the text module with init and the text option, or with loadText, before creating the builder that draws text" },
|
|
448
|
+
"disposed": { kind: "state", hint: "free a handle only after its last use; to keep working, open the document again or create a new builder" },
|
|
449
|
+
"worker-version-mismatch": { kind: "usage", hint: "serve the worker file from the same @laminapdf/sdk build as the page; don't load it from a CDN or an older deploy" },
|
|
450
|
+
"worker-crashed": { kind: "internal", hint: "call client.restart() and open the document again; report the file if it keeps happening" },
|
|
451
|
+
"worker-failed": { kind: "internal", hint: "this is a bug in Lamina PDF: report it with the call and the message; the worker keeps running" },
|
|
452
|
+
};
|
|
453
|
+
//# sourceMappingURL=codes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codes.js","sourceRoot":"","sources":["../../src/generated/codes.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,2FAA2F;AAsK3F,+CAA+C;AAC/C,MAAM,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