@embedpdf/engine-core 3.0.0-next.10 → 3.0.0-next.12

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.
Files changed (45) hide show
  1. package/dist/{AnnotationListSnapshot-DDxHpJQU.d.cts → AnnotationListSnapshot-x6tKulNV.d.cts} +461 -114
  2. package/dist/{AnnotationListSnapshot-DDxHpJQU.d.ts → AnnotationListSnapshot-x6tKulNV.d.ts} +461 -114
  3. package/dist/{DocumentSecurityService-o9aeTHwT.d.ts → DocumentSecurityService-9MawYxP-.d.ts} +2 -2
  4. package/dist/{DocumentSecurityService-BV4_YXkU.d.cts → DocumentSecurityService-CK0pejAK.d.cts} +2 -2
  5. package/dist/{Engine-DOoVem7_.d.ts → Engine--0XF0UAK.d.cts} +68 -3
  6. package/dist/{Engine-D9je6GdU.d.cts → Engine-Ds0ytbl6.d.ts} +68 -3
  7. package/dist/{builders-Cp_rlGob.cjs → builders-8Hl1AYNU.cjs} +44 -8
  8. package/dist/builders-8Hl1AYNU.cjs.map +1 -0
  9. package/dist/{builders-B_KufGJ9.js → builders-DOjcKDWQ.js} +39 -9
  10. package/dist/builders-DOjcKDWQ.js.map +1 -0
  11. package/dist/conformance.cjs +769 -101
  12. package/dist/conformance.cjs.map +1 -1
  13. package/dist/conformance.d.cts +56 -3
  14. package/dist/conformance.d.ts +56 -3
  15. package/dist/conformance.js +767 -102
  16. package/dist/conformance.js.map +1 -1
  17. package/dist/index.cjs +3 -2
  18. package/dist/index.d.cts +2 -2
  19. package/dist/index.d.ts +2 -2
  20. package/dist/index.js +3 -3
  21. package/dist/{resolver-DiPMTfcy.js → resolver-CHG4waXL.js} +2 -1
  22. package/dist/resolver-CHG4waXL.js.map +1 -0
  23. package/dist/{resolver-DAZWVoJL.cjs → resolver-D-jumvgM.cjs} +2 -1
  24. package/dist/resolver-D-jumvgM.cjs.map +1 -0
  25. package/dist/runtime.cjs +3 -2
  26. package/dist/runtime.d.cts +66 -5
  27. package/dist/runtime.d.ts +66 -5
  28. package/dist/runtime.js +3 -3
  29. package/dist/{schemas-DAnu8tuW.js → schemas-DOyVEPk7.js} +206 -84
  30. package/dist/schemas-DOyVEPk7.js.map +1 -0
  31. package/dist/{schemas-D1pxEv3t.cjs → schemas-RChsAMWw.cjs} +259 -83
  32. package/dist/schemas-RChsAMWw.cjs.map +1 -0
  33. package/dist/wire.cjs +65 -2
  34. package/dist/wire.cjs.map +1 -1
  35. package/dist/wire.d.cts +210 -8
  36. package/dist/wire.d.ts +210 -8
  37. package/dist/wire.js +54 -3
  38. package/dist/wire.js.map +1 -1
  39. package/package.json +1 -1
  40. package/dist/builders-B_KufGJ9.js.map +0 -1
  41. package/dist/builders-Cp_rlGob.cjs.map +0 -1
  42. package/dist/resolver-DAZWVoJL.cjs.map +0 -1
  43. package/dist/resolver-DiPMTfcy.js.map +0 -1
  44. package/dist/schemas-D1pxEv3t.cjs.map +0 -1
  45. package/dist/schemas-DAnu8tuW.js.map +0 -1
@@ -16,20 +16,245 @@ interface DocumentMetadata {
16
16
  custom: Record<string, string>;
17
17
  }
18
18
  //#endregion
19
+ //#region src/identity/PageObjectNumber.d.ts
20
+ /**
21
+ * PDF indirect object number for a page.
22
+ *
23
+ * Resolved via the PDFium runtime helper `EPDFPage_GetObjectNumber(pagePtr)`.
24
+ * Always > 0 for well-formed PDFs. This replaces the v2 page index as the
25
+ * primary addressing key. The page index is kept on `PageHandle` as display
26
+ * metadata only, because it can shift when pages are inserted, deleted, or
27
+ * reordered while a session is open.
28
+ */
29
+ type PageObjectNumber = number;
30
+ /**
31
+ * Type guard for the rare malformed-PDF case where a page is a direct
32
+ * object. The engine treats `0` as malformed and throws `EngineError(NotFound)`
33
+ * before any page-level operation.
34
+ */
35
+ declare function isValidPageObjectNumber(value: unknown): value is PageObjectNumber;
36
+ //#endregion
37
+ //#region src/dto/PdfDestination.d.ts
38
+ /**
39
+ * An explicit PDF destination (ISO 32000-1 §12.3.2.2): a page, a location,
40
+ * and a magnification. Produced by outlines/bookmarks, link annotations,
41
+ * `/OpenAction`, and GoTo actions; named destinations resolve to one of
42
+ * these through the catalog's `/Dests` dictionary or name tree — the
43
+ * ENGINE does that resolution, so the viewer only ever sees this explicit
44
+ * form.
45
+ *
46
+ * Coordinates are PDF user space (y-up, points, absolute — NOT
47
+ * crop-relative). `null` means "retain the current value" (the spec's
48
+ * meaning for null array entries); a `/XYZ` zoom of `0` is equivalent to
49
+ * null. The `fitB*` kinds refer to the page's content BOUNDING box rather
50
+ * than the crop box.
51
+ *
52
+ * Viewers translate these onto the stage's reveal primitive — see
53
+ * `destinationToReveal` in `@embedpdf/plugin-stage`.
54
+ */
55
+ type PdfDestination = {
56
+ kind: 'xyz';
57
+ pageObjectNumber: PageObjectNumber;
58
+ left?: number | null;
59
+ top?: number | null;
60
+ zoom?: number | null;
61
+ } | {
62
+ kind: 'fit';
63
+ pageObjectNumber: PageObjectNumber;
64
+ } | {
65
+ kind: 'fitH';
66
+ pageObjectNumber: PageObjectNumber;
67
+ top?: number | null;
68
+ } | {
69
+ kind: 'fitV';
70
+ pageObjectNumber: PageObjectNumber;
71
+ left?: number | null;
72
+ } | {
73
+ kind: 'fitR';
74
+ pageObjectNumber: PageObjectNumber;
75
+ left: number;
76
+ bottom: number;
77
+ right: number;
78
+ top: number;
79
+ } | {
80
+ kind: 'fitB';
81
+ pageObjectNumber: PageObjectNumber;
82
+ } | {
83
+ kind: 'fitBH';
84
+ pageObjectNumber: PageObjectNumber;
85
+ top?: number | null;
86
+ } | {
87
+ kind: 'fitBV';
88
+ pageObjectNumber: PageObjectNumber;
89
+ left?: number | null;
90
+ };
91
+ //#endregion
19
92
  //#region src/dto/PdfAction.d.ts
20
93
  /** Normalized values of an action dictionary's `/S` name. */
21
- type PdfActionType = 'unknown' | 'goto' | 'goto-remote' | 'goto-embedded' | 'launch' | 'thread' | 'uri' | 'sound' | 'movie' | 'hide' | 'named' | 'submit-form' | 'reset-form' | 'import-data' | 'javascript' | 'set-ocg-state' | 'rendition' | 'transition' | 'goto-3d-view';
22
- /** One detached node in a normalized PDF action tree. */
23
- interface PdfActionNode {
24
- type: PdfActionType;
94
+ type PdfActionType = PdfActionNode['type'];
95
+ /**
96
+ * One Hide `/T` or ResetForm `/Fields` entry. Deliberately UNSCOPED: a
97
+ * dictionary reference carries no page, so resolution (a name to widgets, an
98
+ * object number to an annotation or field) is the interpreter's job — never
99
+ * the extractor's.
100
+ */
101
+ type PdfActionTargetRef = {
102
+ kind: 'name';
103
+ name: string;
104
+ } | {
105
+ kind: 'objectNumber';
106
+ objectNumber: number;
107
+ };
108
+ /**
109
+ * Decoded SubmitForm `/Flags` word (ISO 32000-2:2020 Table 240) plus the raw
110
+ * value. `exclude` is DERIVED from bit 1 — never stored separately, so the
111
+ * two cannot disagree. Note the two easily-missed positions verified against
112
+ * the spec: bit 12 is `ExclFKey` (not "ExclFDFTemplate") and bit 13 is
113
+ * reserved/undefined, so `EmbedForm` is bit 14.
114
+ */
115
+ interface SubmitFormFlags {
116
+ raw: number;
117
+ /** Bit 1: set → `fields` lists EXCLUDED fields. */
118
+ exclude: boolean;
119
+ /** Bit 2: submit designated valueless fields too, as name-only entries. */
120
+ includeNoValueFields: boolean;
121
+ /** Bits 3/6/9 folded into one verdict: bit 9 SubmitPDF dominates ("all
122
+ * other flags shall be ignored except GetMethod"), else bit 6 XFDF, else
123
+ * bit 3 HTML Form format, else FDF (the Table 240 default). */
124
+ format: 'fdf' | 'html' | 'xfdf' | 'pdf';
125
+ /** Bit 4. ISO makes GetMethod meaningful only with ExportFormat set, and
126
+ * the bit-9 rule keeps it alive for SubmitPDF — so `'get'` only for
127
+ * `'html'` and `'pdf'`; everything else posts. */
128
+ method: 'post' | 'get';
129
+ /** Bit 5 (meaningful only with ExportFormat; passed through — this stack
130
+ * does not capture click coordinates). */
131
+ submitCoordinates: boolean;
132
+ /** Bit 7 (FDF only): include incremental updates via FDF `Differences`. */
133
+ includeAppendSaves: boolean;
134
+ /** Bit 8 (FDF only): include markup annotations. */
135
+ includeAnnotations: boolean;
136
+ /** Bit 10: convert date-like values to the standard date format. */
137
+ canonicalFormat: boolean;
138
+ /** Bit 11 (FDF, with IncludeAnnotations): only the current user's
139
+ * annotations. */
140
+ exclNonUserAnnots: boolean;
141
+ /** Bit 12: the submitted FDF excludes its `F` entry. */
142
+ exclFKey: boolean;
143
+ /** Bit 14 (bit 13 is reserved): the FDF `F` entry embeds the source PDF. */
144
+ embedForm: boolean;
145
+ }
146
+ /**
147
+ * The one Table-240 decode, shared by the reader, the schema's producers,
148
+ * and tests — so bit semantics cannot fork.
149
+ */
150
+ declare const decodeSubmitFormFlags: (raw: number) => SubmitFormFlags;
151
+ /**
152
+ * SubmitForm's extracted intent. ATOMIC on purpose: either every required
153
+ * component resolved (a complete, executable payload) or the node carries no
154
+ * payload at all — partial states are unrepresentable. An unreadable
155
+ * REQUIRED component (`/F`) degrades the whole node to `unknown` +
156
+ * `payload-dropped` at read time instead.
157
+ */
158
+ interface SubmitFormPayload {
159
+ /** Resolved `/F` URL — a `<< /FS /URL >>` file specification (7.11.5,
160
+ * `/UF` preferred over `/F` per 7.11.2); a bare string `/F` is accepted
161
+ * as a producer-compat extension. */
162
+ url: string;
163
+ /**
164
+ * `null` = `/Fields` ABSENT → Include/Exclude is ignored and every field
165
+ * except NoExport-flagged ones is submitted (Table 239). `[]` =
166
+ * present-but-empty: include mode submits NOTHING, exclude mode submits
167
+ * everything eligible — presence and emptiness are different states.
168
+ */
169
+ fields: PdfActionTargetRef[] | null;
170
+ flags: SubmitFormFlags;
171
+ /** `/CharSet` (PDF 2.0), extracted but not encoded by this stack. */
172
+ charSet?: string;
173
+ }
174
+ interface PdfActionNodeCommon {
25
175
  /** Raw `/S` name, retained for unknown and future action types. */
26
176
  subtype: string;
27
- /** Decoded `/JS` source for JavaScript and Rendition actions. */
28
- script?: string;
29
177
  /** Normalized `/Next` children in PDF order. */
30
178
  next: PdfActionNode[];
31
179
  }
32
- type PdfActionWarning = 'cycle-dropped' | 'malformed-next' | 'incomplete';
180
+ /**
181
+ * One detached node in a normalized PDF action tree, discriminated on the
182
+ * interpreter that would execute it. Every executable arm carries its full
183
+ * payload — a `goto` without a destination or a `uri` without a URI is
184
+ * unrepresentable. A payload the reader cannot materialize degrades the node
185
+ * to `unknown` (original `/S` kept on `subtype`) and appends the tree-level
186
+ * `'payload-dropped'` warning.
187
+ */
188
+ type PdfActionNode = PdfActionNodeCommon & ({
189
+ type: 'javascript';
190
+ script: string;
191
+ } | {
192
+ type: 'goto';
193
+ destination: PdfDestination;
194
+ } | {
195
+ type: 'uri';
196
+ uri: string;
197
+ isMap: boolean;
198
+ } | {
199
+ type: 'named';
200
+ name: string;
201
+ } | {
202
+ type: 'hide';
203
+ targets: PdfActionTargetRef[];
204
+ hide: boolean;
205
+ } | {
206
+ type: 'reset-form';
207
+ /**
208
+ * `null` = `/Fields` ABSENT → reset every field (`exclude` is
209
+ * meaningless). `[]` = present-but-empty: with `exclude` false reset
210
+ * NOTHING, with `exclude` true reset EVERYTHING — PDFium's executor
211
+ * branches on presence first.
212
+ */
213
+ fields: PdfActionTargetRef[] | null;
214
+ exclude: boolean;
215
+ } |
216
+ /** Reported, never executed. */
217
+ {
218
+ type: 'goto-remote';
219
+ filePath: string;
220
+ } | {
221
+ type: 'goto-embedded';
222
+ filePath: string;
223
+ } | {
224
+ type: 'launch';
225
+ filePath: string;
226
+ } |
227
+ /** ISO allows `/Rendition` to carry `/JS`; preserved, not collected. */
228
+ {
229
+ type: 'rendition';
230
+ script?: string;
231
+ } |
232
+ /** Recognized; executable only when `payload` is present. Absent payload
233
+ * = extracted by an older runtime (skew) — the node stays
234
+ * recognized-inert exactly as before this payload existed. */
235
+ {
236
+ type: 'submit-form';
237
+ payload?: SubmitFormPayload;
238
+ } | {
239
+ type: 'thread';
240
+ } | {
241
+ type: 'sound';
242
+ } | {
243
+ type: 'movie';
244
+ } | {
245
+ type: 'import-data';
246
+ } | {
247
+ type: 'set-ocg-state';
248
+ } | {
249
+ type: 'transition';
250
+ } | {
251
+ type: 'goto-3d-view';
252
+ } | {
253
+ type: 'unknown';
254
+ });
255
+ type PdfActionWarning = 'cycle-dropped' | 'malformed-next' | 'incomplete' |
256
+ /** A node's payload could not be read; that node degraded to `unknown`. */
257
+ 'payload-dropped';
33
258
  /**
34
259
  * One extracted action root plus the native reader's safety verdict.
35
260
  * Consumers must never execute a tree whose `incomplete` flag is true.
@@ -38,7 +263,8 @@ interface PdfActionTree {
38
263
  /** Null when the model was valid but its root exceeded a safety bound. */
39
264
  root: PdfActionNode | null;
40
265
  incomplete: boolean;
41
- /** Raw native bits, retained so newer warnings survive older SDKs. */
266
+ /** Raw native bits, retained so newer warnings survive older SDKs.
267
+ * TS-detected warnings (`payload-dropped`) appear only in `warnings`. */
42
268
  warningFlags: number;
43
269
  warnings: PdfActionWarning[];
44
270
  }
@@ -73,8 +299,13 @@ interface NamedJavaScriptAction {
73
299
  /** Catalog-owned actions. Page actions stay on their owning PageLayout. */
74
300
  interface DocumentActionsSnapshot {
75
301
  nameTreeScripts: NamedJavaScriptAction[];
76
- /** Action-form `/OpenAction`; a destination-form value reads as null. */
302
+ /** Action-form `/OpenAction`. Mutually exclusive with `openDestination` —
303
+ * `/OpenAction` is one entry, a dictionary or an array. */
77
304
  openAction: PdfActionTree | null;
305
+ /** Destination-form `/OpenAction` — the initial view, not an action.
306
+ * Optional on the wire for skew tolerance (absent ≡ null); the schema
307
+ * defaults it, so parsed snapshots always carry the key. */
308
+ openDestination?: PdfDestination | null;
78
309
  willClose?: PdfActionTree;
79
310
  willSave?: PdfActionTree;
80
311
  didSave?: PdfActionTree;
@@ -90,6 +321,13 @@ interface ActionReadBudget {
90
321
  maxModels: number;
91
322
  maxNodes: number;
92
323
  maxScriptCodeUnits: number;
324
+ /** Hide `/T` + ResetForm/SubmitForm `/Fields` entries, aggregate across
325
+ * the job. */
326
+ maxTargetEntries: number;
327
+ /** Payload string code units (URIs, submit URLs/CharSets, names, file
328
+ * paths, name-tree script names), aggregate across the job. Reserved
329
+ * BEFORE allocation. */
330
+ maxPayloadCodeUnits: number;
93
331
  }
94
332
  //#endregion
95
333
  //#region src/geometry/primitives.d.ts
@@ -342,24 +580,6 @@ interface AnnotationFlags {
342
580
  }
343
581
  declare const NO_ANNOTATION_FLAGS: AnnotationFlags;
344
582
  //#endregion
345
- //#region src/identity/PageObjectNumber.d.ts
346
- /**
347
- * PDF indirect object number for a page.
348
- *
349
- * Resolved via the PDFium runtime helper `EPDFPage_GetObjectNumber(pagePtr)`.
350
- * Always > 0 for well-formed PDFs. This replaces the v2 page index as the
351
- * primary addressing key. The page index is kept on `PageHandle` as display
352
- * metadata only, because it can shift when pages are inserted, deleted, or
353
- * reordered while a session is open.
354
- */
355
- type PageObjectNumber = number;
356
- /**
357
- * Type guard for the rare malformed-PDF case where a page is a direct
358
- * object. The engine treats `0` as malformed and throws `EngineError(NotFound)`
359
- * before any page-level operation.
360
- */
361
- declare function isValidPageObjectNumber(value: unknown): value is PageObjectNumber;
362
- //#endregion
363
583
  //#region src/revision/RevisionToken.d.ts
364
584
  /**
365
585
  * Opaque token a client must hand back when addressing an annotation by
@@ -464,7 +684,7 @@ interface AnnotationDraftBase {
464
684
  * expands these capabilities. PDF bits are NEVER consulted unless
465
685
  * `pdf.permissions` is in scope.
466
686
  */
467
- type DocCapability = 'doc.open' | 'doc.render' | 'doc.text.select' | 'doc.text.copy' | 'doc.text.search' | 'doc.content.copy' | 'doc.download' | 'doc.download.flattened' | 'doc.print' | 'doc.print.high' | 'doc.pages.modify' | 'doc.pages.assemble' | 'doc.forms.read' | 'doc.forms.fill' | 'doc.forms.modify' | 'doc.annotate.read' | 'doc.annotate.modify' | 'doc.metadata.modify' | 'doc.attachments.modify' | 'doc.redact';
687
+ type DocCapability = 'doc.open' | 'doc.render' | 'doc.text.select' | 'doc.text.copy' | 'doc.text.search' | 'doc.content.copy' | 'doc.download' | 'doc.download.flattened' | 'doc.print' | 'doc.print.high' | 'doc.pages.modify' | 'doc.pages.assemble' | 'doc.forms.read' | 'doc.forms.fill' | 'doc.forms.modify' | 'doc.forms.submit' | 'doc.annotate.read' | 'doc.annotate.modify' | 'doc.metadata.modify' | 'doc.attachments.modify' | 'doc.redact';
468
688
  /**
469
689
  * Single-entity collaboration vocabulary. Only annotations are
470
690
  * collab-scoped today; future entities slot into the same grammar.
@@ -1079,6 +1299,45 @@ interface MetadataPatch {
1079
1299
  custom?: Record<string, string | null>;
1080
1300
  }
1081
1301
  //#endregion
1302
+ //#region src/dto/NamedPage.d.ts
1303
+ /**
1304
+ * What a `/Names /Pages` or `/Names /Templates` registration resolves to.
1305
+ *
1306
+ * - `page`: a page in the page tree — the normal case; addressable through
1307
+ * `doc.page(pageObjectNumber)` and present in `PageListSnapshot.pages`.
1308
+ * - `template`: a `/Type /Template` dictionary OUTSIDE the page tree
1309
+ * (ISO 32000-2 §12.7.7): never listed as a page, never renderable,
1310
+ * `doc.page()` does not accept its object number. Reported so consumers
1311
+ * can diagnose hidden templates instead of silently ignoring them.
1312
+ * - `dangling`: the value is null, missing, or not a page/template
1313
+ * dictionary. Engines remove `/Pages` registrations when their page is
1314
+ * deleted, so this is only observable in files authored elsewhere.
1315
+ */
1316
+ type NamedPageTarget = {
1317
+ kind: 'page';
1318
+ pageObjectNumber: PageObjectNumber;
1319
+ } | {
1320
+ kind: 'template';
1321
+ objectNumber: number;
1322
+ } | {
1323
+ kind: 'dangling';
1324
+ };
1325
+ /**
1326
+ * One entry of the catalog's named-page trees, in tree (key-sorted) order.
1327
+ * Page-identity data like `PageLayout.label`, so it rides
1328
+ * `PageListSnapshot` and shares the layout plane's version — a key only
1329
+ * means something against the page set that contains its target.
1330
+ *
1331
+ * `name` is the decoded key text and the identity for `pages.setName` /
1332
+ * `pages.removeName`; the engine re-encodes it. The engine never interprets
1333
+ * the text — Acrobat's stamp-library convention (`identifier=label`) is a
1334
+ * consumer concern.
1335
+ */
1336
+ interface NamedPageEntry {
1337
+ name: string;
1338
+ target: NamedPageTarget;
1339
+ }
1340
+ //#endregion
1082
1341
  //#region src/dto/PageLayout.d.ts
1083
1342
  /**
1084
1343
  * @deprecated Use `PdfRotation` from `../geometry`. A page's display rotation
@@ -1156,6 +1415,13 @@ interface PageLayout {
1156
1415
  interface PageListSnapshot {
1157
1416
  pageCount: number;
1158
1417
  pages: PageLayout[];
1418
+ /**
1419
+ * The catalog's `/Names /Pages` and `/Names /Templates` registrations, in
1420
+ * tree order — see {@link NamedPageEntry}. Absent when the producing
1421
+ * engine predates the field (an older cloud server): consumers treat
1422
+ * absent as "unknown", never as "no registrations".
1423
+ */
1424
+ namedPages?: NamedPageEntry[];
1159
1425
  }
1160
1426
  //#endregion
1161
1427
  //#region src/geometry/convert.d.ts
@@ -2216,8 +2482,13 @@ interface BinaryPayload {
2216
2482
  name?: string;
2217
2483
  }
2218
2484
  /**
2219
- * A resolved binary payload in wire form: bytes detached from any Blob and
2220
- * ready to ship (worker transfer list or multipart part body).
2485
+ * A resolved binary payload in wire form: a PRIVATE COPY of the caller's
2486
+ * bytes, owned by the call and ready to ship (worker transfer list or
2487
+ * multipart part body). Ownership is the whole point: the local engine puts
2488
+ * `bytes` on a postMessage transfer list, which detaches the buffer, and a
2489
+ * `BinarySource` is a borrowed argument — never the caller's buffer to lose.
2490
+ * Blob sources yield fresh bytes by construction; Uint8Array sources are
2491
+ * copied here so a full-span view is not silently aliased and killed.
2221
2492
  */
2222
2493
  interface WireResource {
2223
2494
  bytes: ArrayBuffer;
@@ -2791,61 +3062,6 @@ interface DocumentManifest {
2791
3062
  pages: ManifestPage[];
2792
3063
  }
2793
3064
  //#endregion
2794
- //#region src/dto/PdfDestination.d.ts
2795
- /**
2796
- * An explicit PDF destination (ISO 32000-1 §12.3.2.2): a page, a location,
2797
- * and a magnification. Produced by outlines/bookmarks, link annotations,
2798
- * `/OpenAction`, and GoTo actions; named destinations resolve to one of
2799
- * these through the catalog's `/Dests` dictionary or name tree — the
2800
- * ENGINE does that resolution, so the viewer only ever sees this explicit
2801
- * form.
2802
- *
2803
- * Coordinates are PDF user space (y-up, points, absolute — NOT
2804
- * crop-relative). `null` means "retain the current value" (the spec's
2805
- * meaning for null array entries); a `/XYZ` zoom of `0` is equivalent to
2806
- * null. The `fitB*` kinds refer to the page's content BOUNDING box rather
2807
- * than the crop box.
2808
- *
2809
- * Viewers translate these onto the stage's reveal primitive — see
2810
- * `destinationToReveal` in `@embedpdf/plugin-stage`.
2811
- */
2812
- type PdfDestination = {
2813
- kind: 'xyz';
2814
- pageObjectNumber: PageObjectNumber;
2815
- left?: number | null;
2816
- top?: number | null;
2817
- zoom?: number | null;
2818
- } | {
2819
- kind: 'fit';
2820
- pageObjectNumber: PageObjectNumber;
2821
- } | {
2822
- kind: 'fitH';
2823
- pageObjectNumber: PageObjectNumber;
2824
- top?: number | null;
2825
- } | {
2826
- kind: 'fitV';
2827
- pageObjectNumber: PageObjectNumber;
2828
- left?: number | null;
2829
- } | {
2830
- kind: 'fitR';
2831
- pageObjectNumber: PageObjectNumber;
2832
- left: number;
2833
- bottom: number;
2834
- right: number;
2835
- top: number;
2836
- } | {
2837
- kind: 'fitB';
2838
- pageObjectNumber: PageObjectNumber;
2839
- } | {
2840
- kind: 'fitBH';
2841
- pageObjectNumber: PageObjectNumber;
2842
- top?: number | null;
2843
- } | {
2844
- kind: 'fitBV';
2845
- pageObjectNumber: PageObjectNumber;
2846
- left?: number | null;
2847
- };
2848
- //#endregion
2849
3065
  //#region src/dto/PdfLinkTarget.d.ts
2850
3066
  /**
2851
3067
  * Where a link annotation points, NORMALIZED. A link may carry either a
@@ -3642,6 +3858,59 @@ type FormFieldValue = {
3642
3858
  /** Serialized form-data interchange formats. */
3643
3859
  type FormDataFormat = 'fdf' | 'xfdf';
3644
3860
  //#endregion
3861
+ //#region src/forms/submission.d.ts
3862
+ /**
3863
+ * One resolved entry of a form submission. The viewer resolved it with the
3864
+ * ISO 32000-2 Table 239/240 semantics already applied (Include/Exclude +
3865
+ * descendants, the unconditional NoExport veto, push-button and
3866
+ * unsupported-value exclusion), so the home never re-derives selection.
3867
+ * `value === null` is a NAME-ONLY entry (the IncludeNoValueFields shape);
3868
+ * `string[]` is a multi-select list box.
3869
+ */
3870
+ interface FormSubmissionEntry {
3871
+ name: string;
3872
+ value: string | string[] | null;
3873
+ }
3874
+ /**
3875
+ * What a submit-capable document HOME receives — the resolved dataset plus
3876
+ * the document's declared intent as METADATA. The stack never fetches the
3877
+ * declared URL itself (a PDF-controlled URL reaching a server-side fetcher
3878
+ * is the SSRF class this contract exists to prevent); the home stores the
3879
+ * intent so its consumers can decide what to honor.
3880
+ *
3881
+ * Deliberately ABSENT: identity. The home derives who submitted from its
3882
+ * OWN verified session (the JWT it authenticated) — a client-supplied
3883
+ * identity would be a spoofing surface.
3884
+ */
3885
+ interface FormSubmissionRequest {
3886
+ entries: FormSubmissionEntry[];
3887
+ /** The document's declared routing wish, verbatim (metadata, not orders).
3888
+ * `url` is null for scripted submits that named no target. */
3889
+ intent: {
3890
+ url: string | null;
3891
+ format: 'fdf' | 'html' | 'xfdf' | 'pdf';
3892
+ method: 'post' | 'get';
3893
+ /** Raw ISO Table 240 flag word (0 for scripted submits without one). */
3894
+ flagsRaw: number;
3895
+ /** /CharSet (PDF 2.0), extracted but never encoded by this stack. */
3896
+ charSet?: string;
3897
+ };
3898
+ /** How the submission was triggered — the viewer-derived origin axis. */
3899
+ origin: 'user' | 'hover' | 'lifecycle';
3900
+ /** Client wall-clock, milliseconds since epoch. Informational — the home
3901
+ * stamps its own authoritative `receivedAt`. */
3902
+ clientTimeMs: number;
3903
+ }
3904
+ /** The home's acknowledgment: the stored submission's durable identity. */
3905
+ interface FormSubmissionReceipt {
3906
+ submissionId: string;
3907
+ /** ISO 8601, the home's clock. */
3908
+ receivedAt: string;
3909
+ }
3910
+ declare const FormSubmissionEntrySchema: z.ZodType<FormSubmissionEntry>;
3911
+ declare const FormSubmissionRequestSchema: z.ZodType<FormSubmissionRequest>;
3912
+ declare const FormSubmissionReceiptSchema: z.ZodType<FormSubmissionReceipt>;
3913
+ //#endregion
3645
3914
  //#region src/forms/effects.d.ts
3646
3915
  type FormFieldDisplay = 'visible' | 'hidden' | 'noPrint' | 'noView';
3647
3916
  /** Ordered, committed outputs of one client-side form script run. */
@@ -4244,6 +4513,94 @@ interface PageMoveResult {
4244
4513
  cache: PageMoveCache | null;
4245
4514
  }
4246
4515
  //#endregion
4516
+ //#region src/mutation/PageNameInput.d.ts
4517
+ /**
4518
+ * Input for `pages.setName()`: register `name` → the page in
4519
+ * `/Names /Pages`. An existing registration with the same decoded key is
4520
+ * replaced (idempotent). With `replace`, that other key is removed in the
4521
+ * SAME job — a rename or retarget as one mutation.
4522
+ *
4523
+ * `name` must be non-empty; the engine never interprets it. Only pages in
4524
+ * the page tree may be registered (hidden templates are refused).
4525
+ */
4526
+ interface PageNameInput {
4527
+ name: string;
4528
+ pageObjectNumber: PageObjectNumber;
4529
+ /** An existing key to drop in the same job (rename). */
4530
+ replace?: string;
4531
+ }
4532
+ /** Input for `pages.removeName()`: the registration to drop; the page stays. */
4533
+ interface PageRemoveNameInput {
4534
+ name: string;
4535
+ }
4536
+ //#endregion
4537
+ //#region src/mutation/PageNameResult.d.ts
4538
+ /**
4539
+ * Result of `pages.setName()` / `pages.removeName()`. Named pages are
4540
+ * LAYOUT: the post-mutation snapshot (with `namedPages`) is returned whole,
4541
+ * and the cache pins say `docVersion` + `layoutVersion` advanced — per-page
4542
+ * content/annotation pins never move (same shape as `PageMoveResult` on
4543
+ * purpose). `cache` is null on local engines.
4544
+ */
4545
+ interface PageNameResult {
4546
+ layout: PageListSnapshot;
4547
+ cache: PageStructureCache | null;
4548
+ }
4549
+ //#endregion
4550
+ //#region src/mutation/PageFlattenResult.d.ts
4551
+ type PageFlattenUsage = 'display' | 'print';
4552
+ type PageFlattenStatus = 'applied' | 'unchanged' | 'failed' | 'skipped';
4553
+ interface PageFlattenInput {
4554
+ pageObjectNumbers: PageObjectNumber[];
4555
+ usage: PageFlattenUsage;
4556
+ }
4557
+ interface PageFlattenItemResult {
4558
+ pageObjectNumber: PageObjectNumber;
4559
+ status: PageFlattenStatus;
4560
+ error?: SerializedEngineError;
4561
+ }
4562
+ /** Flatten is a content + annotation mutation, never a layout mutation. */
4563
+ interface PageFlattenResult {
4564
+ /** The original ordered request, retained for audit/event replay. */
4565
+ pageObjectNumbers: PageObjectNumber[];
4566
+ usage: PageFlattenUsage;
4567
+ results: PageFlattenItemResult[];
4568
+ meta: MutationMeta | null;
4569
+ }
4570
+ //#endregion
4571
+ //#region src/mutation/AnnotationFlattenResult.d.ts
4572
+ /** Input for `page(pon).annotations.flatten()`: the refs (all on that page). */
4573
+ interface AnnotationFlattenInput {
4574
+ refs: AnnotationRef[];
4575
+ usage: PageFlattenUsage;
4576
+ }
4577
+ /**
4578
+ * Per-ref outcome. `applied`: painted into the page content and removed.
4579
+ * `skipped`: left in place — hidden for the usage, a Popup, or without a
4580
+ * usable normal appearance. A ref that is not on the page rejects the whole
4581
+ * call with `InvalidArg` before anything is mutated, so it never appears here.
4582
+ */
4583
+ interface AnnotationFlattenItemResult {
4584
+ ref: AnnotationRef;
4585
+ status: 'applied' | 'skipped';
4586
+ }
4587
+ /**
4588
+ * Result of `page(pon).annotations.flatten()` — `pages.flatten` for a chosen
4589
+ * set. A content + annotation mutation of ONE page: `meta` carries that
4590
+ * page's new pins (null when nothing was applied), exactly like
4591
+ * `PageFlattenResult`.
4592
+ */
4593
+ interface AnnotationFlattenResult {
4594
+ pageObjectNumber: PageObjectNumber;
4595
+ usage: PageFlattenUsage;
4596
+ results: AnnotationFlattenItemResult[];
4597
+ meta: MutationMeta | null;
4598
+ }
4599
+ /** Input for `page(pon).annotations.exportAppearance()`. */
4600
+ interface AnnotationAppearanceExportInput {
4601
+ refs: AnnotationRef[];
4602
+ }
4603
+ //#endregion
4247
4604
  //#region src/mutation/PageRotateInput.d.ts
4248
4605
  /**
4249
4606
  * Input to `pages.rotate()`. Rotation is ABSOLUTE ("set to"), never relative
@@ -4356,27 +4713,6 @@ interface PageInsertBlankSpec {
4356
4713
  count?: number;
4357
4714
  }
4358
4715
  //#endregion
4359
- //#region src/mutation/PageFlattenResult.d.ts
4360
- type PageFlattenUsage = 'display' | 'print';
4361
- type PageFlattenStatus = 'applied' | 'unchanged' | 'failed' | 'skipped';
4362
- interface PageFlattenInput {
4363
- pageObjectNumbers: PageObjectNumber[];
4364
- usage: PageFlattenUsage;
4365
- }
4366
- interface PageFlattenItemResult {
4367
- pageObjectNumber: PageObjectNumber;
4368
- status: PageFlattenStatus;
4369
- error?: SerializedEngineError;
4370
- }
4371
- /** Flatten is a content + annotation mutation, never a layout mutation. */
4372
- interface PageFlattenResult {
4373
- /** The original ordered request, retained for audit/event replay. */
4374
- pageObjectNumbers: PageObjectNumber[];
4375
- usage: PageFlattenUsage;
4376
- results: PageFlattenItemResult[];
4377
- meta: MutationMeta | null;
4378
- }
4379
- //#endregion
4380
4716
  //#region src/mutation/RedactionApplyResult.d.ts
4381
4717
  type RedactionApplyStatus = 'applied' | 'unchanged' | 'failed' | 'skipped';
4382
4718
  /**
@@ -4827,12 +5163,16 @@ interface LinkPatch extends AnnotationPatchBase {
4827
5163
  target?: PdfLinkTargetWritable | null;
4828
5164
  }
4829
5165
  //#endregion
4830
- //#region src/annotation/kinds/link/schema.d.ts
5166
+ //#region src/dto/PdfDestination.schema.d.ts
4831
5167
  /**
4832
- * Runtime schema for {@link PdfDestination}. Lives with the link kind (its
4833
- * first wire consumer); the outline/bookmark port reuses it from here.
5168
+ * Runtime schema for {@link PdfDestination}. Lives beside its DTO in `dto/`
5169
+ * so every destination-shaped surface (link targets, action-node payloads,
5170
+ * the document `openDestination`) shares one schema without an import cycle
5171
+ * through the annotation tree.
4834
5172
  */
4835
5173
  declare const PdfDestinationSchema: z.ZodType<PdfDestination>;
5174
+ //#endregion
5175
+ //#region src/annotation/kinds/link/schema.d.ts
4836
5176
  declare const PdfLinkTargetSchema: z.ZodType<PdfLinkTarget>;
4837
5177
  /** Drafts/patches only author `goto`/`uri` — see {@link PdfLinkTargetWritable}. */
4838
5178
  declare const PdfLinkTargetWritableSchema: z.ZodType<PdfLinkTargetWritable>;
@@ -5138,7 +5478,13 @@ interface StampDraft extends AnnotationDraftBase {
5138
5478
  rect: PdfRect;
5139
5479
  /** What the stamp displays: PNG, JPEG, or single-page PDF bytes. */
5140
5480
  source: BinarySource;
5141
- /** `/Name` — advisory stamp label ('Approved', 'Draft', …). */
5481
+ /**
5482
+ * `/Name` — the stamp's identifier: a standard name ('Approved', 'Draft',
5483
+ * …) or any custom name such as an Acrobat library identifier
5484
+ * ('#LBGiYhk8V_oAfmqAPENiwD'). Written as a PDF name object; the engine
5485
+ * escapes it. Predefined sets are a reader's rendering concern, so nothing
5486
+ * is validated beyond non-empty.
5487
+ */
5142
5488
  name?: string;
5143
5489
  /** Scaling of the content into `rect`. Default `'contain'` (preserves aspect). */
5144
5490
  fit?: StampFit;
@@ -5189,7 +5535,8 @@ interface StampPatch extends AnnotationPatchBase {
5189
5535
  subtype: 'stamp';
5190
5536
  rect?: PdfRect;
5191
5537
  source?: BinarySource;
5192
- name?: string;
5538
+ /** `/Name`; `null` removes it (the reader then reports the default). */
5539
+ name?: string | null;
5193
5540
  fit?: StampFit;
5194
5541
  rotation?: number | null;
5195
5542
  unrotatedRect?: PdfRect | null;
@@ -5199,7 +5546,7 @@ interface StampWirePatch extends AnnotationPatchBase {
5199
5546
  subtype: 'stamp';
5200
5547
  rect?: PdfRect;
5201
5548
  source?: ResourceRef;
5202
- name?: string;
5549
+ name?: string | null;
5203
5550
  fit?: StampFit;
5204
5551
  rotation?: number | null;
5205
5552
  unrotatedRect?: PdfRect | null;
@@ -5536,5 +5883,5 @@ interface AnnotationListPageSnapshot {
5536
5883
  annotations: AnnotationDTO[];
5537
5884
  }
5538
5885
  //#endregion
5539
- export { CaretDraftSchema as $, NormalizedPatch as $a, StandardFont as $c, AnnotationMutationKind as $i, canonicalSearchQuery as $n, PageImageResult as $o, FormEffectsResult as $r, caps as $s, CircleDraftSchema as $t, FileAttachmentWireDraftSchema as A, AttachmentDeleteResult as Aa, AnnotationDraftBase as Ac, FormFieldOption as Ai, HighlightDraft as An, FontKey as Ao, SearchSnippet as Ar, normalizePdfRect as As, LineDraft as At, StampAnnotationDTO as B, FilledStyleDraftFields as Ba, CaretIntent as Bc, FormFieldRef as Bi, PageFlattenStatus as Bn, AnnotationAppearanceMode as Bo, textGlyphQuad as Br, PageBoxes as Bs, PolygonPatch as Bt, RedactDraft as C, classifyRelation as Ca, IdentityClaims as Cc, WidgetStylePatchFields as Ci, UnderlineAnnotationDTO as Cn, EngineError as Co, toOriginalRange as Cr, boundaryTextOffset as Cs, LinkAnnotationDTO as Ct, FileAttachmentDTOSchema as D, DraftOfKind as Da, ParsedVirtual as Dc, FormFieldDTO as Di, HighlightPatchSchema as Dn, serializeError as Do, SearchRequest as Dr, sliceTextByChars as Ds, LinePatchSchema as Dt, WidgetDraft as E, DTOOfKind as Ea, ParsedScope as Ec, FormFieldBase as Ei, HighlightDraftSchema as En, deserializeError as Eo, SearchQuery as Er, charRangeForTextOffsets as Es, LineDraftSchema as Et, StampDTOSchema as F, FileAttachmentWireDraft as Fa, isValidPageObjectNumber as Fc, SignatureFieldDTO as Fi, RedactionApplyScope as Fn, AnnotationAppearanceImage as Fo, TextLayoutRun as Fr, pdfRectHeight as Fs, PolylineAnnotationDTO as Ft, TextDTOSchema as G, GeometryStylePatchFields as Ga, LineEnding as Gc, AnnotationDeleteResult as Gi, PageDeleteResult as Gn, PageState as Go, FormFieldUpdateResult as Gr, OpenInputById as Gs, VertexPatchFields as Gt, StampFit as H, FilledStylePatchFields as Ha, FreeTextFont as Hc, decodeFieldRefKey as Hi, PAGE_INSERT_BLANK_MAX_COUNT as Hn, AnnotationAppearanceRenderOptions as Ho, FormDataExport as Hr, PageRotation as Hs, PolygonDraft as Ht, StampWireDraftSchema as I, WireAttachmentFile as Ia, AnnotationBorderStyle as Ic, TextFieldDTO as Ii, RedactionApplyStatus as In, AnnotationAppearanceImageOptions as Io, buildPageTextLayout as Ir, pdfRectSize as Is, PolylineDraft as It, TextPatch as J, AttachmentFileInfo as Ja, PdfRectDifferences as Jc, AppearanceAction as Ji, PageRotateInput as Jn, knownWeakAnnotationState as Jo, FormSetValueResult as Jr, OpenInputLayerSource as Js, SquarePatchSchema as Jt, TextDraftSchema as K, AttachmentContent as Ka, LineEndings as Kc, AnnotationMoveResult as Ki, PageDeleteInput as Kn, UNKNOWN_WEAK_ANNOTATION_STATE as Ko, FormImportResult as Kr, OpenInputBytes as Ks, SquareDTOSchema as Kt, StampWirePatchSchema as L, ColorStyleDraftFields as La, AnnotationFlags as Lc, ToggleFieldWidget as Li, PageFlattenInput as Ln, AnnotationAppearanceImagesResult as Lo, expandTextRangeToLine as Lr, pdfRectToOriginSize as Ls, PolygonDTOSchema as Lt, FileAttachmentPatch as M, normalizeAttachmentFileSource as Ma, RevisionToken as Mc, ListBoxFieldDTO as Mi, MetadataUpdateResult as Mn, DEFAULT_PDF_SAVE_MODE as Mo, PdfTextSegment as Mr, pdfQuadCorners as Ms, PolylineDraftSchema as Mt, FileAttachmentAnnotationDTO as N, FileAttachmentDraft as Na, revisionTokensEqual as Nc, PushButtonFieldDTO as Ni, RedactionApplyItemResult as Nn, PdfSaveMode as No, TextLayoutFrame as Nr, pdfQuadFromCorners as Ns, PolylinePatchSchema as Nt, FileAttachmentIconSchema as O, PatchOfKind as Oa, ParsedWildcard as Oc, FormFieldFamily as Oi, HighlightPatch as On, EngineErrorCode as Oo, SearchSlice as Or, PdfOriginSize as Os, LinePatch as Ot, ResourceRefSchema as P, FileAttachmentIcon as Pa, PageObjectNumber as Pc, RadioFieldDTO as Pi, RedactionApplyResult as Pn, CachePins as Po, TextLayoutGlyph as Pr, pdfRectFromOriginSize as Ps, PolylinePatch as Pt, CaretDTOSchema as Q, NormalizedDraft as Qa, Size as Qc, semanticEqual as Qi, PageMoveInput as Qn, PageImageOptions as Qo, FormEffectStatus as Qr, TokenSource as Qs, CircleDTOSchema as Qt, StampPatch as R, ColorStyleFields as Ra, AnnotationReplyType as Rc, UnknownFieldDTO as Ri, PageFlattenItemResult as Rn, AnnotationAppearanceManifest as Ro, expandTextRangeToWord as Rr, pdfRectWidth as Rs, PolygonDraftSchema as Rt, RedactAnnotationDTO as S, buildThreads as Sa, DocCapability as Sc, WidgetStyleFields as Si, DocumentMetadataTrapped as Sl, UnderlinePatch as Sn, encodeStableIdKey as So, foldText as Sr, CharMapAnchor as Ss, LinkPatch as St, WidgetAnnotationDTO as T, AnnotationKindModule as Ta, ParsedCollab as Tc, ComboBoxFieldDTO as Ti, HighlightDTOSchema as Tn, SerializedEngineError as To, SearchMode as Tr, charMapViolation as Ts, LineDTOSchema as Tt, StampWireDraft as U, GeometryStyleDraftFields as Ua, FreeTextIntent as Uc, encodeFieldRefKey as Ui, PageInsertBlankSpec as Un, AnnotationAppearancesQuery as Uo, FormFieldCreateResult as Ur, MetadataPatch as Us, VertexAnnotationFields as Ut, StampDraft as V, FilledStyleFields as Va, Color as Vc, FormWidgetRef as Vi, PageFlattenUsage as Vn, AnnotationAppearanceRaster as Vo, textSegmentsForRange as Vr, PageLayout as Vs, PolygonAnnotationDTO as Vt, NoteIconSchema as W, GeometryStyleFields as Wa, InkIntent as Wc, AnnotationCreateResult as Wi, PageInsertResult as Wn, AnnotationAppearancesResult as Wo, FormFieldDeleteResult as Wr, OpenInput as Ws, VertexDraftFields as Wt, NoteIcon as X, EmbeddedFileItem as Xa, Rect as Xc, AppearanceOutcome as Xi, PageMoveResult as Xn, PageImageHandle as Xo, FormEffect as Xr, OpenInputToken as Xs, SquareAnnotationDTO as Xt, TextAnnotationDTO as Y, AttachmentFileSource as Ya, Point as Yc, AppearanceImpact as Yi, PageMoveCache as Yn, PageImageBlobSource as Yo, FormWidgetLinkResult as Yr, OpenInputShare as Ys, SquarePatch as Yt, TextDraft as Z, EmbeddedFileRef as Za, Rotation as Zc, appearanceImpactOf as Zi, PageStructureCache as Zn, PageImageObjectUrl as Zo, FormEffectResult as Zr, OpenOptions as Zs, SquareDraft as Zt, UnsupportedPatchSchema as _, ReviewStatus as _a, decodePdfBits as _c, FormKind as _i, PdfActionWarning as _l, SquigglyAnnotationDTO as _n, AnnotationPatchBase as _o, wordBefore as _r, glyphLooseBounds as _s, LinkDraftSchema as _t, AnnotationDTOSchema as a, CacheDelta as aa, checkCapability as ac, FormFieldPatch as ai, LinePoints as al, ShapeDraftFields as an, BinaryPayload as ao, matchPageText as ar, PageRenderFormat as as, FreeTextDraftSchema as at, UnsupportedAnnotationDTO as b, AnnotationRelationKind as ba, CollabEntity as bc, WidgetAppearanceSchema as bi, PdfPageActions as bl, UnderlineDraftSchema as bn, AnnotationStableId as bo, SEARCH_FOLD_VERSION as br, PageTextSnapshot as bs, PdfLinkTargetSchema as bt, AnnotationKind as c, PdfLinkTargetWritable as ca, expandRawScope as cc, TextFieldPatch as ci, PdfRect as cl, StrikeoutDraftSchema as cn, WireResource as co, SearchQueryValidation as cr, PageRenderTarget as cs, FreeTextAnnotationDTO as ct, AnnotationSubtypeOfKind as d, ManifestPage as da, InvalidScope as dc, FormFieldDraft as di, ActionReadBudget as dl, StrikeoutAnnotationDTO as dn, ANNOTATION_SUBTYPES as do, matchRegex as dr, PageGeometryGlyph as ds, InkDraftSchema as dt, changesAnnotationList as ea, collab as ec, FormFieldDisplay as ei, StrikeoutIntent as el, CirclePatchSchema as en, normalizeAnnotationDraft as eo, searchContentEpoch as er, PageImageSource as es, CaretPatchSchema as et, KIND_BY_SUBTYPE as f, LayerScopePlane as fa, MissingIdentity as fc, FormFieldOptionInput as fi, DocumentActionsSnapshot as fl, StrikeoutDraft as fn, AnnotationSubtype as fo, validateSearchQuery as fr, PageGeometryRun as fs, InkPatchSchema as ft, UnsupportedDraftSchema as g, CommentThreadReview as ga, PDF_BITS as gc, WidgetPlacement as gi, PdfActionType as gl, SquigglyPatch as gn, subtypeFromCode as go, wordAt as gr, UprightGeometryRun as gs, LinkDTOSchema as gt, UnsupportedDTOSchema as h, CommentThread as ha, validateScopeArray as hc, TextFieldDraft as hi, PdfActionTree as hl, SquigglyPatchSchema as hn, PdfAnnotationSubtypeCode as ho, matchLiteral as hr, RotatedGeometryRun as hs, InkDraft as ht, AnnotationDTO as i, RefetchReason as ia, checkAnyCapability as ic, ComboBoxFieldPatch as ii, InkStroke as il, ShapeAnnotationFields as in, sniffBinaryMetadata as io, buildSnippet as ir, PageRenderEncodedFormat as is, FreeTextDTOSchema as it, WireAttachmentFileSchema as j, AttachmentsCache as ja, AnnotationRef as jc, FormFieldOrigin as ji, MetadataCache as jn, FontSpec as jo, PageTextLayout as jr, pdfQuadBounds as js, PolylineDTOSchema as jt, FileAttachmentPatchSchema as k, AttachmentCreateResult as ka, PdfBits as kc, FormFieldFlags as ki, HighlightAnnotationDTO as kn, FontHandle as ko, SearchSliceBudget as kr, PdfQuadCorners as ks, LineAnnotationDTO as kt, AnnotationPatch as l, PdfDestination as la, expandedCapabilities as lc, CheckboxFieldDraft as li, PdfRotation as ll, StrikeoutPatchSchema as ln, WireResourceMap as lo, SearchRegexIssue as lr, PageRenderViewport as ls, FreeTextDraft as lt, WireAnnotationPatch as m, BuildCommentThreadsOptions as ma, parseScope as mc, RadioFieldDraft as mi, PdfActionNode as ml, SquigglyDraftSchema as mn, PDF_SUBTYPE_TO_CODE as mo, foldOptionsFor as mr, RotatedGeometryGlyph as ms, InkAnnotationDTO as mt, AnnotationListSnapshotAllPages as n, shiftsExistingAnnotationIndices as na, pdfPermissions as nc, FormFieldValue as ni, CalloutLine as nl, CircleAnnotationDTO as nn, BinaryMetadata as no, searchSegmentsForRange as nr, PageRaster as ns, CaretAnnotationDTO as nt, AnnotationDraft as o, MutationMeta as oa, checkCollab as oc, ListBoxFieldPatch as oi, PdfPoint as ol, ShapePatchFields as on, BinarySource as oo, SEARCH_REGEX_MAX_LENGTH as or, PageRenderOptions as os, FreeTextPatchSchema as ot, WireAnnotationDraft as p, LayerScopes as pa, PermissionDenied as pc, ListBoxFieldDraft as pi, NamedJavaScriptAction as pl, SquigglyDTOSchema as pn, PDF_CODE_TO_SUBTYPE as po, validateSearchRegex as pr, PageGeometrySnapshot as ps, InkPatch as pt, TextPatchSchema as q, AttachmentFileBase as qa, NO_ANNOTATION_FLAGS as qc, AnnotationUpdateResult as qi, PageRotateResult as qn, WeakAnnotationState as qo, FormRepairResult as qr, OpenInputLayerBytes as qs, SquareDraftSchema as qt, ANNOTATION_KINDS as r, AnnotationListMutationMeta as ra, CollabTarget as rc, CheckboxFieldPatch as ri, InkList as rl, CircleDraft as rn, BinaryMimeType as ro, SEARCH_SNIPPET_CONTEXT as rr, PageRenderBackground as rs, CaretDraft as rt, AnnotationDraftSchema as s, PdfLinkTarget as sa, checkSetGroup as sc, RadioFieldPatch as si, PdfQuad as sl, StrikeoutDTOSchema as sn, ResourceRef as so, SearchQueryIssue as sr, PageRenderQuery as ss, FreeTextPatch as st, AnnotationListPageSnapshot as t, invalidatesWeakIndexRefs as ta, materializePdfPermissions as tc, FormDataFormat as ti, TextAlignment as tl, CirclePatch as tn, normalizeAnnotationPatch as to, searchRectsForRange as tr, PageNetworkRenderFormat as ts, CaretPatch as tt, AnnotationPatchSchema as u, DocumentManifest as ua, filterMatches as uc, ComboBoxFieldDraft as ui, PdfSize as ul, StrikeoutPatch as un, resolveBinarySource as uo, SearchRegexValidation as ur, createPageImageHandle as us, InkDTOSchema as ut, UnsupportedPatch as v, buildCommentThreads as va, AnnotationActor as vc, FormSnapshot as vi, PdfAnnotationActions as vl, SquigglyDraft as vn, AnnotationBase as vo, FoldOptions as vr, glyphLooseQuad as vs, LinkPatchSchema as vt, WidgetPatch as w, refKey as wa, ParsedCapability as wc, CheckboxFieldDTO as wi, UnderlineDraft as wn, EngineErrorOptions as wo, SearchMatch as wr, charBoundaryAtTextOffset as ws, LinkDraft as wt, RedactPatch as x, AnnotationThread as xa, CollabFilter as xc, WidgetStyleDraftFields as xi, DocumentMetadata as xl, UnderlinePatchSchema as xn, decodeStableIdKey as xo, SearchMatchRange as xr, CharBoundaryBias as xs, PdfLinkTargetWritableSchema as xt, UnsupportedDraft as y, isStateAnnotation as ya, CollabAction as yc, WidgetAppearance as yi, PdfFieldActions as yl, UnderlineDTOSchema as yn, AnnotationIdentityQuality as yo, FoldedText as yr, isRotatedGeometryRun as ys, PdfDestinationSchema as yt, StampWirePatch as z, ColorStylePatchFields as za, BlendMode as zc, FormValueEntry as zi, PageFlattenResult as zn, AnnotationAppearanceManifestEntry as zo, textGlyphAt as zr, PageListSnapshot as zs, PolygonPatchSchema as zt };
5540
- //# sourceMappingURL=AnnotationListSnapshot-DDxHpJQU.d.cts.map
5886
+ export { CaretDraftSchema as $, FilledStyleFields as $a, Color as $c, FormFieldRef as $i, PageNameResult as $n, AnnotationAppearanceRaster as $o, FormImportResult as $r, PageLayout as $s, CircleDraftSchema as $t, FileAttachmentWireDraftSchema as A, buildCommentThreads as Aa, PDF_BITS as Ac, FormKind as Ai, PdfActionWarning as Al, HighlightDraft as An, AnnotationBase as Ao, toOriginalRange as Ar, glyphLooseQuad as As, LineDraft as At, StampAnnotationDTO as B, PatchOfKind as Ba, ParsedScope as Bc, FormFieldDTO as Bi, DocumentMetadata as Bl, PageDeleteResult as Bn, EngineErrorCode as Bo, TextLayoutFrame as Br, PdfOriginSize as Bs, PolygonPatch as Bt, RedactDraft as C, ManifestPage as Ca, expandedCapabilities as Cc, ComboBoxFieldDraft as Ci, ActionReadBudget as Cl, UnderlineAnnotationDTO as Cn, ANNOTATION_SUBTYPES as Co, wordAt as Cr, PageGeometryGlyph as Cs, LinkAnnotationDTO as Ct, FileAttachmentDTOSchema as D, CommentThread as Da, PermissionDenied as Dc, RadioFieldDraft as Di, PdfActionTargetRef as Dl, HighlightPatchSchema as Dn, PdfAnnotationSubtypeCode as Do, SEARCH_FOLD_VERSION as Dr, RotatedGeometryRun as Ds, LinePatchSchema as Dt, WidgetDraft as E, BuildCommentThreadsOptions as Ea, MissingIdentity as Ec, ListBoxFieldDraft as Ei, PdfActionNode as El, HighlightDraftSchema as En, PDF_SUBTYPE_TO_CODE as Eo, FoldedText as Er, RotatedGeometryGlyph as Es, LineDraftSchema as Et, StampDTOSchema as F, classifyRelation as Fa, CollabFilter as Fc, WidgetStyleFields as Fi, SubmitFormPayload as Fl, RedactionApplyScope as Fn, EngineError as Fo, SearchSlice as Fr, boundaryTextOffset as Fs, PolylineAnnotationDTO as Ft, TextDTOSchema as G, FileAttachmentDraft as Ga, AnnotationRef as Gc, ListBoxFieldDTO as Gi, AnnotationFlattenInput as Gn, PdfSaveMode as Go, expandTextRangeToWord as Gr, pdfQuadFromCorners as Gs, VertexPatchFields as Gt, StampFit as H, AttachmentDeleteResult as Ha, ParsedWildcard as Hc, FormFieldFlags as Hi, PageRotateResult as Hn, FontKey as Ho, TextLayoutRun as Hr, normalizePdfRect as Hs, PolygonDraft as Ht, StampWireDraftSchema as I, refKey as Ia, DocCapability as Ic, WidgetStylePatchFields as Ii, decodeSubmitFormFlags as Il, RedactionApplyStatus as In, EngineErrorOptions as Io, SearchSliceBudget as Ir, charBoundaryAtTextOffset as Is, PolylineDraft as It, TextPatch as J, WireAttachmentFile as Ja, AnnotationBorderStyle as Jc, SignatureFieldDTO as Ji, PageFlattenInput as Jn, AnnotationAppearanceImageOptions as Jo, textSegmentsForRange as Jr, pdfRectSize as Js, SquarePatchSchema as Jt, TextDraftSchema as K, FileAttachmentIcon as Ka, RevisionToken as Kc, PushButtonFieldDTO as Ki, AnnotationFlattenItemResult as Kn, CachePins as Ko, textGlyphAt as Kr, pdfRectFromOriginSize as Ks, SquareDTOSchema as Kt, StampWirePatchSchema as L, AnnotationKindModule as La, IdentityClaims as Lc, CheckboxFieldDTO as Li, PdfDestination as Ll, PAGE_INSERT_BLANK_MAX_COUNT as Ln, SerializedEngineError as Lo, SearchSnippet as Lr, charMapViolation as Ls, PolygonDTOSchema as Lt, FileAttachmentPatch as M, AnnotationRelationKind as Ma, AnnotationActor as Mc, WidgetAppearance as Mi, PdfFieldActions as Ml, MetadataUpdateResult as Mn, AnnotationStableId as Mo, SearchMode as Mr, PageTextSnapshot as Ms, PolylineDraftSchema as Mt, FileAttachmentAnnotationDTO as N, AnnotationThread as Na, CollabAction as Nc, WidgetAppearanceSchema as Ni, PdfPageActions as Nl, RedactionApplyItemResult as Nn, decodeStableIdKey as No, SearchQuery as Nr, CharBoundaryBias as Ns, PolylinePatchSchema as Nt, FileAttachmentIconSchema as O, CommentThreadReview as Oa, parseScope as Oc, TextFieldDraft as Oi, PdfActionTree as Ol, HighlightPatch as On, subtypeFromCode as Oo, SearchMatchRange as Or, UprightGeometryRun as Os, LinePatch as Ot, ResourceRefSchema as P, buildThreads as Pa, CollabEntity as Pc, WidgetStyleDraftFields as Pi, SubmitFormFlags as Pl, RedactionApplyResult as Pn, encodeStableIdKey as Po, SearchRequest as Pr, CharMapAnchor as Ps, PolylinePatch as Pt, CaretDTOSchema as Q, FilledStyleDraftFields as Qa, CaretIntent as Qc, FormValueEntry as Qi, PageFlattenUsage as Qn, AnnotationAppearanceMode as Qo, FormFieldUpdateResult as Qr, PageBoxes as Qs, CircleDTOSchema as Qt, StampPatch as R, DTOOfKind as Ra, ParsedCapability as Rc, ComboBoxFieldDTO as Ri, PageObjectNumber as Rl, PageInsertBlankSpec as Rn, deserializeError as Ro, PageTextLayout as Rr, charRangeForTextOffsets as Rs, PolygonDraftSchema as Rt, RedactAnnotationDTO as S, DocumentManifest as Sa, expandRawScope as Sc, CheckboxFieldDraft as Si, PdfSize as Sl, UnderlinePatch as Sn, resolveBinarySource as So, matchLiteral as Sr, createPageImageHandle as Ss, LinkPatch as St, WidgetAnnotationDTO as T, LayerScopes as Ta, InvalidScope as Tc, FormFieldOptionInput as Ti, NamedJavaScriptAction as Tl, HighlightDTOSchema as Tn, PDF_CODE_TO_SUBTYPE as To, FoldOptions as Tr, PageGeometrySnapshot as Ts, LineDTOSchema as Tt, StampWireDraft as U, AttachmentsCache as Ua, PdfBits as Uc, FormFieldOption as Ui, PageRotateInput as Un, FontSpec as Uo, buildPageTextLayout as Ur, pdfQuadBounds as Us, VertexAnnotationFields as Ut, StampDraft as V, AttachmentCreateResult as Va, ParsedVirtual as Vc, FormFieldFamily as Vi, DocumentMetadataTrapped as Vl, PageDeleteInput as Vn, FontHandle as Vo, TextLayoutGlyph as Vr, PdfQuadCorners as Vs, PolygonAnnotationDTO as Vt, NoteIconSchema as W, normalizeAttachmentFileSource as Wa, AnnotationDraftBase as Wc, FormFieldOrigin as Wi, AnnotationAppearanceExportInput as Wn, DEFAULT_PDF_SAVE_MODE as Wo, expandTextRangeToLine as Wr, pdfQuadCorners as Ws, VertexDraftFields as Wt, NoteIcon as X, ColorStyleFields as Xa, AnnotationReplyType as Xc, ToggleFieldWidget as Xi, PageFlattenResult as Xn, AnnotationAppearanceManifest as Xo, FormFieldCreateResult as Xr, pdfRectWidth as Xs, SquareAnnotationDTO as Xt, TextAnnotationDTO as Y, ColorStyleDraftFields as Ya, AnnotationFlags as Yc, TextFieldDTO as Yi, PageFlattenItemResult as Yn, AnnotationAppearanceImagesResult as Yo, FormDataExport as Yr, pdfRectToOriginSize as Ys, SquarePatch as Yt, TextDraft as Z, ColorStylePatchFields as Za, BlendMode as Zc, UnknownFieldDTO as Zi, PageFlattenStatus as Zn, AnnotationAppearanceManifestEntry as Zo, FormFieldDeleteResult as Zr, PageListSnapshot as Zs, SquareDraft as Zt, UnsupportedPatchSchema as _, RefetchReason as _a, CollabTarget as _c, ComboBoxFieldPatch as _i, LinePoints as _l, SquigglyAnnotationDTO as _n, BinaryPayload as _o, SearchRegexValidation as _r, PageRenderFormat as _s, LinkDraftSchema as _t, AnnotationDTOSchema as a, AnnotationMoveResult as aa, OpenInputById as ac, FormEffectStatus as ai, NO_ANNOTATION_FLAGS as al, ShapeDraftFields as an, AttachmentFileBase as ao, PageMoveInput as ar, WeakAnnotationState as as, FreeTextDraftSchema as at, UnsupportedAnnotationDTO as b, PdfLinkTarget as ba, checkCollab as bc, RadioFieldPatch as bi, PdfRect as bl, UnderlineDraftSchema as bn, WireResource as bo, validateSearchRegex as br, PageRenderTarget as bs, PdfLinkTargetWritableSchema as bt, AnnotationKind as c, AppearanceImpact as ca, OpenInputLayerSource as cc, FormSubmissionEntry as ci, Rect as cl, StrikeoutDraftSchema as cn, EmbeddedFileItem as co, searchRectsForRange as cr, PageImageHandle as cs, FreeTextAnnotationDTO as ct, AnnotationSubtypeOfKind as d, semanticEqual as da, OpenOptions as dc, FormSubmissionReceiptSchema as di, StandardFont as dl, StrikeoutAnnotationDTO as dn, NormalizedPatch as do, buildSnippet as dr, PageImageResult as ds, InkDraftSchema as dt, FormWidgetRef as ea, PageRotation as ec, FormRepairResult as ei, FreeTextFont as el, CirclePatchSchema as en, FilledStylePatchFields as eo, PageNameInput as er, AnnotationAppearanceRenderOptions as es, CaretPatchSchema as et, KIND_BY_SUBTYPE as f, AnnotationMutationKind as fa, TokenSource as fc, FormSubmissionRequest as fi, StrikeoutIntent as fl, StrikeoutDraft as fn, normalizeAnnotationDraft as fo, matchPageText as fr, PageImageSource as fs, InkPatchSchema as ft, UnsupportedDraftSchema as g, AnnotationListMutationMeta as ga, pdfPermissions as gc, CheckboxFieldPatch as gi, InkStroke as gl, SquigglyPatch as gn, sniffBinaryMetadata as go, SearchRegexIssue as gr, PageRenderEncodedFormat as gs, LinkDTOSchema as gt, UnsupportedDTOSchema as h, shiftsExistingAnnotationIndices as ha, materializePdfPermissions as hc, FormFieldValue as hi, InkList as hl, SquigglyPatchSchema as hn, BinaryMimeType as ho, SearchQueryValidation as hr, PageRenderBackground as hs, InkDraft as ht, AnnotationDTO as i, AnnotationDeleteResult as ia, OpenInput as ic, FormEffectResult as ii, LineEndings as il, ShapeAnnotationFields as in, AttachmentContent as io, PageStructureCache as ir, UNKNOWN_WEAK_ANNOTATION_STATE as is, FreeTextDTOSchema as it, WireAttachmentFileSchema as j, isStateAnnotation as ja, decodePdfBits as jc, FormSnapshot as ji, PdfAnnotationActions as jl, MetadataCache as jn, AnnotationIdentityQuality as jo, SearchMatch as jr, isRotatedGeometryRun as js, PolylineDTOSchema as jt, FileAttachmentPatchSchema as k, ReviewStatus as ka, validateScopeArray as kc, WidgetPlacement as ki, PdfActionType as kl, HighlightAnnotationDTO as kn, AnnotationPatchBase as ko, foldText as kr, glyphLooseBounds as ks, LineAnnotationDTO as kt, AnnotationPatch as l, AppearanceOutcome as la, OpenInputShare as lc, FormSubmissionEntrySchema as li, Rotation as ll, StrikeoutPatchSchema as ln, EmbeddedFileRef as lo, searchSegmentsForRange as lr, PageImageObjectUrl as ls, FreeTextDraft as lt, WireAnnotationPatch as m, invalidatesWeakIndexRefs as ma, collab as mc, FormDataFormat as mi, CalloutLine as ml, SquigglyDraftSchema as mn, BinaryMetadata as mo, SearchQueryIssue as mr, PageRaster as ms, InkAnnotationDTO as mt, AnnotationListSnapshotAllPages as n, encodeFieldRefKey as na, NamedPageTarget as nc, FormWidgetLinkResult as ni, InkIntent as nl, CircleAnnotationDTO as nn, GeometryStyleFields as no, PageMoveCache as nr, AnnotationAppearancesResult as ns, CaretAnnotationDTO as nt, AnnotationDraft as o, AnnotationUpdateResult as oa, OpenInputBytes as oc, FormEffectsResult as oi, PdfRectDifferences as ol, ShapePatchFields as on, AttachmentFileInfo as oo, canonicalSearchQuery as or, knownWeakAnnotationState as os, FreeTextPatchSchema as ot, WireAnnotationDraft as p, changesAnnotationList as pa, caps as pc, FormSubmissionRequestSchema as pi, TextAlignment as pl, SquigglyDTOSchema as pn, normalizeAnnotationPatch as po, SEARCH_REGEX_MAX_LENGTH as pr, PageNetworkRenderFormat as ps, InkPatch as pt, TextPatchSchema as q, FileAttachmentWireDraft as qa, revisionTokensEqual as qc, RadioFieldDTO as qi, AnnotationFlattenResult as qn, AnnotationAppearanceImage as qo, textGlyphQuad as qr, pdfRectHeight as qs, SquareDraftSchema as qt, ANNOTATION_KINDS as r, AnnotationCreateResult as ra, MetadataPatch as rc, FormEffect as ri, LineEnding as rl, CircleDraft as rn, GeometryStylePatchFields as ro, PageMoveResult as rr, PageState as rs, CaretDraft as rt, AnnotationDraftSchema as s, AppearanceAction as sa, OpenInputLayerBytes as sc, FormFieldDisplay as si, Point as sl, StrikeoutDTOSchema as sn, AttachmentFileSource as so, searchContentEpoch as sr, PageImageBlobSource as ss, FreeTextPatch as st, AnnotationListPageSnapshot as t, decodeFieldRefKey as ta, NamedPageEntry as tc, FormSetValueResult as ti, FreeTextIntent as tl, CirclePatch as tn, GeometryStyleDraftFields as to, PageRemoveNameInput as tr, AnnotationAppearancesQuery as ts, CaretPatch as tt, AnnotationPatchSchema as u, appearanceImpactOf as ua, OpenInputToken as uc, FormSubmissionReceipt as ui, Size as ul, StrikeoutPatch as un, NormalizedDraft as uo, SEARCH_SNIPPET_CONTEXT as ur, PageImageOptions as us, InkDTOSchema as ut, UnsupportedPatch as v, CacheDelta as va, checkAnyCapability as vc, FormFieldPatch as vi, PdfPoint as vl, SquigglyDraft as vn, BinarySource as vo, matchRegex as vr, PageRenderOptions as vs, LinkPatchSchema as vt, WidgetPatch as w, LayerScopePlane as wa, filterMatches as wc, FormFieldDraft as wi, DocumentActionsSnapshot as wl, UnderlineDraft as wn, AnnotationSubtype as wo, wordBefore as wr, PageGeometryRun as ws, LinkDraft as wt, RedactPatch as x, PdfLinkTargetWritable as xa, checkSetGroup as xc, TextFieldPatch as xi, PdfRotation as xl, UnderlinePatchSchema as xn, WireResourceMap as xo, foldOptionsFor as xr, PageRenderViewport as xs, PdfDestinationSchema as xt, UnsupportedDraft as y, MutationMeta as ya, checkCapability as yc, ListBoxFieldPatch as yi, PdfQuad as yl, UnderlineDTOSchema as yn, ResourceRef as yo, validateSearchQuery as yr, PageRenderQuery as ys, PdfLinkTargetSchema as yt, StampWirePatch as z, DraftOfKind as za, ParsedCollab as zc, FormFieldBase as zi, isValidPageObjectNumber as zl, PageInsertResult as zn, serializeError as zo, PdfTextSegment as zr, sliceTextByChars as zs, PolygonPatchSchema as zt };
5887
+ //# sourceMappingURL=AnnotationListSnapshot-x6tKulNV.d.cts.map