@embedpdf/engine-core 3.0.0-next.0 → 3.0.0-next.10
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/dist/{AbortError-CjSasIlL.js → AbortError-8-9JAX1Y.js} +2 -2
- package/dist/{AbortError-CjSasIlL.js.map → AbortError-8-9JAX1Y.js.map} +1 -1
- package/dist/{AbortError-ByBflvEl.cjs → AbortError-CRSooKsk.cjs} +2 -2
- package/dist/{AbortError-ByBflvEl.cjs.map → AbortError-CRSooKsk.cjs.map} +1 -1
- package/dist/{AnnotationListSnapshot-W0RCsyDE.d.cts → AnnotationListSnapshot-DDxHpJQU.d.cts} +538 -41
- package/dist/{AnnotationListSnapshot-W0RCsyDE.d.ts → AnnotationListSnapshot-DDxHpJQU.d.ts} +538 -41
- package/dist/{DocumentSecurityService-Df79fgpe.d.cts → DocumentSecurityService-BV4_YXkU.d.cts} +33 -2
- package/dist/{DocumentSecurityService-B-tULKNY.d.ts → DocumentSecurityService-o9aeTHwT.d.ts} +33 -2
- package/dist/{Engine-D9loFZc1.d.cts → Engine-D9je6GdU.d.cts} +50 -19
- package/dist/{Engine-B7Oe7f5i.d.ts → Engine-DOoVem7_.d.ts} +50 -19
- package/dist/{subtype-qejjVr6h.cjs → PageInsertBlankInput-CzShuSJI.cjs} +184 -1
- package/dist/PageInsertBlankInput-CzShuSJI.cjs.map +1 -0
- package/dist/{subtype-BvAzLCGC.js → PageInsertBlankInput-WKY0tr6S.js} +149 -2
- package/dist/PageInsertBlankInput-WKY0tr6S.js.map +1 -0
- package/dist/{builders-C548U47M.js → builders-B_KufGJ9.js} +547 -169
- package/dist/builders-B_KufGJ9.js.map +1 -0
- package/dist/{builders-BvikWRuO.cjs → builders-Cp_rlGob.cjs} +603 -225
- package/dist/builders-Cp_rlGob.cjs.map +1 -0
- package/dist/conformance.cjs +822 -198
- package/dist/conformance.cjs.map +1 -1
- package/dist/conformance.d.cts +124 -6
- package/dist/conformance.d.ts +124 -6
- package/dist/conformance.js +777 -157
- package/dist/conformance.js.map +1 -1
- package/dist/{fold-CB4fAOOy.js → fold-BfyxxwS6.js} +162 -3
- package/dist/fold-BfyxxwS6.js.map +1 -0
- package/dist/{fold-IaMph3CO.cjs → fold-C7I5GpBz.cjs} +235 -4
- package/dist/fold-C7I5GpBz.cjs.map +1 -0
- package/dist/index.cjs +36 -18
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/runtime.cjs +41 -23
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.d.cts +103 -5
- package/dist/runtime.d.ts +103 -5
- package/dist/runtime.js +5 -5
- package/dist/{schemas-B_1VyFsm.cjs → schemas-D1pxEv3t.cjs} +138 -32
- package/dist/schemas-D1pxEv3t.cjs.map +1 -0
- package/dist/{schemas-9OpSSeM6.js → schemas-DAnu8tuW.js} +95 -13
- package/dist/schemas-DAnu8tuW.js.map +1 -0
- package/dist/wire.cjs +118 -3
- package/dist/wire.cjs.map +1 -1
- package/dist/wire.d.cts +139 -27
- package/dist/wire.d.ts +139 -27
- package/dist/wire.js +111 -4
- package/dist/wire.js.map +1 -1
- package/package.json +1 -1
- package/dist/builders-BvikWRuO.cjs.map +0 -1
- package/dist/builders-C548U47M.js.map +0 -1
- package/dist/fold-CB4fAOOy.js.map +0 -1
- package/dist/fold-IaMph3CO.cjs.map +0 -1
- package/dist/schemas-9OpSSeM6.js.map +0 -1
- package/dist/schemas-B_1VyFsm.cjs.map +0 -1
- package/dist/subtype-BvAzLCGC.js.map +0 -1
- package/dist/subtype-qejjVr6h.cjs.map +0 -1
package/dist/{AnnotationListSnapshot-W0RCsyDE.d.cts → AnnotationListSnapshot-DDxHpJQU.d.cts}
RENAMED
|
@@ -116,9 +116,13 @@ interface PdfPoint {
|
|
|
116
116
|
y: number;
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
|
-
* A rectangle in PDF user space, expressed as edges
|
|
120
|
-
* and `right > left` once normalized). Page-box
|
|
121
|
-
* `left`/`bottom` may be non-zero or negative.
|
|
119
|
+
* A rectangle in the FILE's coordinates — PDF user space, expressed as edges
|
|
120
|
+
* (y-up, so `top > bottom` and `right > left` once normalized). Page-box
|
|
121
|
+
* origin is preserved, so `left`/`bottom` may be non-zero or negative.
|
|
122
|
+
*
|
|
123
|
+
* The rule: stored in the file → `PdfRect`; shown on screen → the viewer's
|
|
124
|
+
* y-down `Rect` (`{x, y, width, height}`). The shapes are incompatible on
|
|
125
|
+
* purpose — passing one where the other goes doesn't compile.
|
|
122
126
|
*/
|
|
123
127
|
interface PdfRect {
|
|
124
128
|
left: number;
|
|
@@ -290,6 +294,36 @@ interface PdfRectDifferences {
|
|
|
290
294
|
* group (e.g. the Caret of a text-edit pair).
|
|
291
295
|
*/
|
|
292
296
|
type AnnotationReplyType = 'reply' | 'group';
|
|
297
|
+
/** The two ISO 32000 §12.5.6.3 standard state models (Table 174). */
|
|
298
|
+
type KnownAnnotationStateModel = 'review' | 'marked';
|
|
299
|
+
/**
|
|
300
|
+
* The `/StateModel` of an annotation-state text annotation — ISO 32000
|
|
301
|
+
* §12.5.6.3. The standard models are `'review'` and `'marked'`, but the
|
|
302
|
+
* PDF stores the entry as a free text string and Acrobat supports
|
|
303
|
+
* registering custom state models, so the type stays open. The
|
|
304
|
+
* `(string & {})` arm keeps the standard literals auto-completing while
|
|
305
|
+
* accepting any custom model (the {@link FreeTextFont} pattern).
|
|
306
|
+
*
|
|
307
|
+
* Known values are wire-stable lowercase; the engine maps them onto the
|
|
308
|
+
* capitalized PDF spellings (`Review`, `Marked`) at read/write time.
|
|
309
|
+
* Unknown values round-trip verbatim in both directions.
|
|
310
|
+
*/
|
|
311
|
+
type AnnotationStateModel = KnownAnnotationStateModel | (string & {});
|
|
312
|
+
/** The ISO 32000 §12.5.6.3 standard states (Table 174). */
|
|
313
|
+
type KnownAnnotationState = 'accepted' | 'rejected' | 'cancelled' | 'completed' | 'none' | 'marked' | 'unmarked';
|
|
314
|
+
/**
|
|
315
|
+
* The `/State` an annotation-state text annotation sets — ISO 32000
|
|
316
|
+
* §12.5.6.3. `'accepted' | 'rejected' | 'cancelled' | 'completed' |
|
|
317
|
+
* 'none'` belong to the `'review'` model; `'marked' | 'unmarked'` to the
|
|
318
|
+
* `'marked'` model. Open for the same reason as
|
|
319
|
+
* {@link AnnotationStateModel}: custom models bring custom states.
|
|
320
|
+
*
|
|
321
|
+
* States are PER USER and live on separate text annotations replying
|
|
322
|
+
* (`/IRT`) to their target — never on the target itself. The `/T` of the
|
|
323
|
+
* state annotation names who set it; later changes by the same user
|
|
324
|
+
* chain as replies to their previous state annotation, latest wins.
|
|
325
|
+
*/
|
|
326
|
+
type AnnotationState = KnownAnnotationState | (string & {});
|
|
293
327
|
/**
|
|
294
328
|
* Bitset wrapper for the `/F` (Annotation Flags) PDF entry. We expose each
|
|
295
329
|
* bit as its own boolean so callers don't have to know the bit positions.
|
|
@@ -392,6 +426,8 @@ type AnnotationRef = {
|
|
|
392
426
|
*/
|
|
393
427
|
interface AnnotationDraftBase {
|
|
394
428
|
contents?: string | null;
|
|
429
|
+
/** `/Subj` — short subject line (ISO 32000 §12.5.6.2, markup annotations). */
|
|
430
|
+
subject?: string | null;
|
|
395
431
|
/** Blend mode to bake into the normal appearance. Omit for the subtype default. */
|
|
396
432
|
blendMode?: BlendMode;
|
|
397
433
|
/** Optional /NM the caller wants to assign on creation. */
|
|
@@ -932,9 +968,9 @@ interface OpenInputById {
|
|
|
932
968
|
* `GET /v1/docs/:docId/head`. The returned handle is bound to this
|
|
933
969
|
* token; subsequent operations on it carry that bearer.
|
|
934
970
|
*
|
|
935
|
-
* Use this
|
|
936
|
-
*
|
|
937
|
-
*
|
|
971
|
+
* Use this when your backend mints doc-scoped JWTs itself (e.g. a
|
|
972
|
+
* logged-in reviewer authorised for exactly one document). For the
|
|
973
|
+
* no-backend public-share flow, use `kind: 'share'` instead.
|
|
938
974
|
*
|
|
939
975
|
* Rejected by `@embedpdf/engine`.
|
|
940
976
|
*/
|
|
@@ -949,7 +985,31 @@ interface OpenInputToken {
|
|
|
949
985
|
token: TokenSource;
|
|
950
986
|
password?: string | null;
|
|
951
987
|
}
|
|
952
|
-
|
|
988
|
+
/**
|
|
989
|
+
* Cloud-engine: open via a public share token (`shr_…`) from the
|
|
990
|
+
* dashboard's embed snippet. A share token is a REFERENCE to a
|
|
991
|
+
* stored grant on the server, not a credential — the engine
|
|
992
|
+
* exchanges it for a short-lived doc-scoped session JWT and
|
|
993
|
+
* silently re-exchanges near expiry, so revoking or editing the
|
|
994
|
+
* share retargets every embedded copy at the next renewal. No
|
|
995
|
+
* backend required; the engine itself may be constructed with no
|
|
996
|
+
* engine-level token at all.
|
|
997
|
+
*
|
|
998
|
+
* Rejected by `@embedpdf/engine`.
|
|
999
|
+
*/
|
|
1000
|
+
interface OpenInputShare {
|
|
1001
|
+
kind: 'share';
|
|
1002
|
+
/** Public share token (`shr_…`) identifying the grant. */
|
|
1003
|
+
shareToken: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* Passphrase for a protected grant. This is the SHARE passphrase,
|
|
1006
|
+
* checked by the exchange endpoint — not the PDF's encryption
|
|
1007
|
+
* password, which stays in `password` like every other kind.
|
|
1008
|
+
*/
|
|
1009
|
+
sharePassword?: string;
|
|
1010
|
+
password?: string | null;
|
|
1011
|
+
}
|
|
1012
|
+
type OpenInput = OpenInputBytes | OpenInputLayerBytes | OpenInputById | OpenInputToken | OpenInputShare;
|
|
953
1013
|
interface OpenOptions {
|
|
954
1014
|
password?: string | null;
|
|
955
1015
|
/**
|
|
@@ -1151,16 +1211,127 @@ declare function pdfQuadCorners(q: PdfQuad): PdfQuadCorners;
|
|
|
1151
1211
|
*/
|
|
1152
1212
|
declare function pdfQuadFromCorners(c: PdfQuadCorners): PdfQuad;
|
|
1153
1213
|
//#endregion
|
|
1214
|
+
//#region src/text/charmap.d.ts
|
|
1215
|
+
/**
|
|
1216
|
+
* Character↔text index translation — the ONE place the two text index
|
|
1217
|
+
* spaces of a page meet.
|
|
1218
|
+
*
|
|
1219
|
+
* A page has two index spaces:
|
|
1220
|
+
*
|
|
1221
|
+
* - CHARACTER space: PDFium's internal character list, the space geometry
|
|
1222
|
+
* runs tile (`PageGeometryRun.charStart`), hit-testing addresses, and
|
|
1223
|
+
* selection ranges live in. Size: `PageTextSnapshot.charCount`.
|
|
1224
|
+
* - TEXT space: UTF-16 code-unit offsets into the extracted string
|
|
1225
|
+
* `PageTextSnapshot.text` — what search matching and slicing operate on.
|
|
1226
|
+
*
|
|
1227
|
+
* They diverge in exactly two ways, both encoded by `charMap` anchors:
|
|
1228
|
+
* - a non-printing character occupies a character slot but contributes
|
|
1229
|
+
* ZERO text units (PDFium's `char_indices_` skip list);
|
|
1230
|
+
* - a supplementary-plane character contributes TWO text units (a
|
|
1231
|
+
* surrogate pair) once extraction is UTF-16-faithful.
|
|
1232
|
+
*
|
|
1233
|
+
* `charMap` semantics (see {@link CharMapAnchor}): an implicit head anchor
|
|
1234
|
+
* `[0, 0]`; between anchors every character advances the text by exactly one
|
|
1235
|
+
* unit; an anchor sits at `i + 1` whenever character `i` contributed
|
|
1236
|
+
* something other than one unit. Absent/empty map = identity
|
|
1237
|
+
* (`charCount === text.length`). `charMapViolation` is the validator both
|
|
1238
|
+
* the wire schema and engine builders share — malformed maps are rejected,
|
|
1239
|
+
* never silently repaired.
|
|
1240
|
+
*
|
|
1241
|
+
* Boundary model: a "character boundary" `c` ∈ [0, charCount] sits BEFORE
|
|
1242
|
+
* character `c`; `boundaryTextOffset(s, charCount) === text.length` always.
|
|
1243
|
+
* All ranges are half-open in both spaces.
|
|
1244
|
+
*/
|
|
1245
|
+
/**
|
|
1246
|
+
* One anchor of the character→text mapping: from character index `char`
|
|
1247
|
+
* onward (until the next anchor), boundary `c` maps to text offset
|
|
1248
|
+
* `text + (c - char)`.
|
|
1249
|
+
*/
|
|
1250
|
+
type CharMapAnchor = readonly [char: number, text: number];
|
|
1251
|
+
/** Direction to resolve a text offset that falls on a zero-width plateau —
|
|
1252
|
+
* see {@link charBoundaryAtTextOffset}. */
|
|
1253
|
+
type CharBoundaryBias = 'start' | 'end';
|
|
1254
|
+
/**
|
|
1255
|
+
* Text offset of character boundary `boundary` (clamped into
|
|
1256
|
+
* [0, charCount]). For a dropped character this is the offset of the next
|
|
1257
|
+
* real text unit — exactly what half-open slicing needs at either end.
|
|
1258
|
+
*/
|
|
1259
|
+
declare function boundaryTextOffset(snapshot: PageTextSnapshot, boundary: number): number;
|
|
1260
|
+
/**
|
|
1261
|
+
* The character boundary for a text offset, with explicit plateau bias:
|
|
1262
|
+
*
|
|
1263
|
+
* - `'start'`: the GREATEST boundary whose text offset is <= `offset` —
|
|
1264
|
+
* scans forward past zero-width characters, so a range start never
|
|
1265
|
+
* includes a dropped character that precedes its first real unit.
|
|
1266
|
+
* - `'end'`: the SMALLEST boundary whose text offset is >= `offset` —
|
|
1267
|
+
* stops before zero-width characters, so a range end never swallows a
|
|
1268
|
+
* dropped character that follows its last real unit.
|
|
1269
|
+
*
|
|
1270
|
+
* An offset inside a surrogate pair resolves outward under both biases
|
|
1271
|
+
* (start → the pair's character, end → past it), so a clipped astral
|
|
1272
|
+
* character is always covered whole. Prefer {@link charRangeForTextOffsets}
|
|
1273
|
+
* — the two biases exist to be used as a PAIR.
|
|
1274
|
+
*/
|
|
1275
|
+
declare function charBoundaryAtTextOffset(snapshot: PageTextSnapshot, offset: number, bias: CharBoundaryBias): number;
|
|
1276
|
+
/**
|
|
1277
|
+
* The character range whose text projection is exactly
|
|
1278
|
+
* `text.slice(startOffset, endOffset)` — THE inverse used by search-hit
|
|
1279
|
+
* conversion and select-by-text. Start is right-biased and end left-biased
|
|
1280
|
+
* (see {@link charBoundaryAtTextOffset}), so zero-width characters adjacent
|
|
1281
|
+
* to the range fall OUTSIDE it on both sides.
|
|
1282
|
+
*
|
|
1283
|
+
* A non-empty text range can never invert: `end > start` implies
|
|
1284
|
+
* `B(end) >= endOffset > startOffset >= B(start)`, which forces
|
|
1285
|
+
* `end > start` by monotonicity. Empty input (`endOffset <= startOffset`)
|
|
1286
|
+
* normalizes to the end-rule boundary of `startOffset` on both sides.
|
|
1287
|
+
*/
|
|
1288
|
+
declare function charRangeForTextOffsets(snapshot: PageTextSnapshot, startOffset: number, endOffset: number): {
|
|
1289
|
+
start: number;
|
|
1290
|
+
end: number;
|
|
1291
|
+
};
|
|
1292
|
+
/**
|
|
1293
|
+
* THE copy primitive: the text projection of the half-open character range
|
|
1294
|
+
* `[charStart, charEnd)`. Dropped characters inside the range contribute
|
|
1295
|
+
* nothing; a supplementary character contributes its full surrogate pair.
|
|
1296
|
+
* `sliceTextByChars(s, 0, s.charCount) === s.text` always.
|
|
1297
|
+
*/
|
|
1298
|
+
declare function sliceTextByChars(snapshot: PageTextSnapshot, charStart: number, charEnd: number): string;
|
|
1299
|
+
/**
|
|
1300
|
+
* First invariant violation of a snapshot's char map, or null when valid.
|
|
1301
|
+
* Shared by the wire schema (rejects malformed bodies) and engine builders
|
|
1302
|
+
* (dev-mode assertion). The invariants:
|
|
1303
|
+
*
|
|
1304
|
+
* 1. absent/empty map ⇒ identity, so `charCount === text.length`;
|
|
1305
|
+
* 2. anchor chars strictly increasing, each in [1, charCount];
|
|
1306
|
+
* 3. step rule: against the previous anchor (implicit head [0, 0]), the
|
|
1307
|
+
* character just before each anchor contributed exactly 0 units
|
|
1308
|
+
* (dropped) or 2 (surrogate pair):
|
|
1309
|
+
* `t₂ - (t₁ + (c₂ - c₁ - 1)) ∈ {0, 2}`;
|
|
1310
|
+
* 4. tail: `lastText + (charCount - lastChar) === text.length`
|
|
1311
|
+
* (equivalently `boundaryTextOffset(s, charCount) === text.length`).
|
|
1312
|
+
*/
|
|
1313
|
+
declare function charMapViolation(charCount: number, textLength: number, charMap: ReadonlyArray<CharMapAnchor> | undefined): string | null;
|
|
1314
|
+
//#endregion
|
|
1154
1315
|
//#region src/dto/PageTextSnapshot.d.ts
|
|
1155
1316
|
/**
|
|
1156
1317
|
* Per-page text snapshot returned by `PageHandle.text.read()` and over
|
|
1157
|
-
* the wire as the `GET /
|
|
1158
|
-
*
|
|
1159
|
-
* `text` is the full
|
|
1160
|
-
* (
|
|
1161
|
-
*
|
|
1162
|
-
*
|
|
1163
|
-
*
|
|
1318
|
+
* the wire as the `GET …/text/pages/:pon/data@<contentVersion>` body.
|
|
1319
|
+
*
|
|
1320
|
+
* `text` is the full extracted page text in display order, UTF-16 faithful
|
|
1321
|
+
* (supplementary-plane characters are surrogate pairs, never dropped).
|
|
1322
|
+
*
|
|
1323
|
+
* `charCount` is the size of the page's CHARACTER space — PDFium's internal
|
|
1324
|
+
* character list, the same space geometry runs tile
|
|
1325
|
+
* (`PageGeometryRun.charStart`) and selection ranges live in. It is NOT the
|
|
1326
|
+
* length of `text`: a non-printing character occupies a character slot but
|
|
1327
|
+
* contributes zero text units, and a supplementary character contributes
|
|
1328
|
+
* two. `charMap` encodes exactly those deviations; absent/empty means the
|
|
1329
|
+
* two spaces are identical (`charCount === text.length`), which is the
|
|
1330
|
+
* common case and costs nothing on the wire. All translation goes through
|
|
1331
|
+
* the helpers in `text/charmap.ts` (`boundaryTextOffset`,
|
|
1332
|
+
* `charRangeForTextOffsets`, `sliceTextByChars`) — consumers never
|
|
1333
|
+
* interpret anchors directly, and the wire schema rejects maps that violate
|
|
1334
|
+
* the invariants documented there.
|
|
1164
1335
|
*
|
|
1165
1336
|
* This snapshot is pure content, addressed and cached by `contentVersion`.
|
|
1166
1337
|
* It deliberately carries NO annotation liveness envelope (`PageState`):
|
|
@@ -1168,22 +1339,19 @@ declare function pdfQuadFromCorners(c: PdfQuadCorners): PdfQuad;
|
|
|
1168
1339
|
* annotation `revision` / weak-state changes on a different cadence than
|
|
1169
1340
|
* `contentVersion`, so baking liveness into this content-cached body would
|
|
1170
1341
|
* be a stale-data hazard. Liveness lives on annotation reads instead.
|
|
1171
|
-
*
|
|
1172
|
-
* Future extensions (per-character bounding boxes, font runs, search
|
|
1173
|
-
* results, etc.) land on `PageTextService` as additional methods; the
|
|
1174
|
-
* snapshot shape stays stable so the wire URL and CDN cache remain
|
|
1175
|
-
* intact across SDK versions.
|
|
1176
1342
|
*/
|
|
1177
1343
|
interface PageTextSnapshot {
|
|
1178
1344
|
text: string;
|
|
1179
1345
|
charCount: number;
|
|
1346
|
+
/** Character→text anchors; absent/empty = identity. See `text/charmap.ts`. */
|
|
1347
|
+
charMap?: ReadonlyArray<CharMapAnchor>;
|
|
1180
1348
|
}
|
|
1181
1349
|
//#endregion
|
|
1182
1350
|
//#region src/dto/PageGeometrySnapshot.d.ts
|
|
1183
1351
|
/**
|
|
1184
|
-
* One glyph's geometry in PDF user space (y-up edges).
|
|
1352
|
+
* One upright glyph's geometry in PDF user space (y-up edges).
|
|
1185
1353
|
*
|
|
1186
|
-
* `looseBox` is the loose char
|
|
1354
|
+
* `looseBox` is the loose char cell (pdfium `FPDFText_GetLooseCharBox`): the
|
|
1187
1355
|
* font-metric box covering the full glyph cell without regard to the actual
|
|
1188
1356
|
* glyph shape. Always present (zeroed + flagged empty for degenerate glyphs);
|
|
1189
1357
|
* it's the box selection envelopes are built from.
|
|
@@ -1200,15 +1368,61 @@ interface PageGeometryGlyph {
|
|
|
1200
1368
|
tightBox?: PdfRect;
|
|
1201
1369
|
}
|
|
1202
1370
|
/**
|
|
1203
|
-
* One
|
|
1204
|
-
*
|
|
1371
|
+
* One non-upright glyph's geometry: the exact oriented cells, in PDF user
|
|
1372
|
+
* space (page coordinates — NOT a local frame). The corner SLOTS are
|
|
1373
|
+
* frame-geometric in the glyph's own upright frame:
|
|
1374
|
+
* `p1` = upper-start, `p2` = upper-end, `p3` = lower-start, `p4` = lower-end,
|
|
1375
|
+
* where "upper" is the ascent side and "start" is the frame's minimum-x side.
|
|
1376
|
+
* Deliberately NOT a bidi/reading-order statement — advance direction is a
|
|
1377
|
+
* glyph-sequence concern, carried separately where consumers need it.
|
|
1378
|
+
*
|
|
1379
|
+
* Degenerate glyphs carry a zeroed `looseQuad` plus the empty flag (bit 2),
|
|
1380
|
+
* mirroring the upright variant's zeroed-box convention. `flags` bits match
|
|
1381
|
+
* {@link PageGeometryGlyph.flags}.
|
|
1382
|
+
*/
|
|
1383
|
+
interface RotatedGeometryGlyph {
|
|
1384
|
+
looseQuad: PdfQuad;
|
|
1385
|
+
flags: number;
|
|
1386
|
+
tightQuad?: PdfQuad;
|
|
1387
|
+
}
|
|
1388
|
+
/**
|
|
1389
|
+
* A run whose char matrix is upright — byte-identical to the wire shape that
|
|
1390
|
+
* predates orientation support, so upright documents never pay for it.
|
|
1205
1391
|
*/
|
|
1206
|
-
interface
|
|
1392
|
+
interface UprightGeometryRun {
|
|
1207
1393
|
rect: PdfRect;
|
|
1208
1394
|
charStart: number;
|
|
1209
1395
|
glyphs: PageGeometryGlyph[];
|
|
1210
1396
|
fontSize?: number;
|
|
1211
1397
|
}
|
|
1398
|
+
/**
|
|
1399
|
+
* A run whose char matrix is NOT upright (rotated, sheared, or mirrored).
|
|
1400
|
+
*
|
|
1401
|
+
* `rect` stays a page-space AABB (culling), like every other wire rect.
|
|
1402
|
+
* `rotation` is the baseline angle in radians, CCW in PDF y-up space
|
|
1403
|
+
* (`atan2(m.b, m.a)` of the run's char matrix). Note a shear-only run has
|
|
1404
|
+
* `rotation === 0` and still uses this variant — its cells are
|
|
1405
|
+
* parallelograms an AABB would misrepresent. `ascentFlip` is true when the
|
|
1406
|
+
* ascent vector maps opposite the rotated frame's +y (mirrored /
|
|
1407
|
+
* negative-determinant content).
|
|
1408
|
+
*/
|
|
1409
|
+
interface RotatedGeometryRun {
|
|
1410
|
+
rect: PdfRect;
|
|
1411
|
+
charStart: number;
|
|
1412
|
+
glyphs: RotatedGeometryGlyph[];
|
|
1413
|
+
rotation: number;
|
|
1414
|
+
ascentFlip: boolean;
|
|
1415
|
+
fontSize?: number;
|
|
1416
|
+
}
|
|
1417
|
+
/**
|
|
1418
|
+
* One text run (contiguous glyphs sharing a text object and orientation).
|
|
1419
|
+
* A discriminated union so consumers CANNOT read axis-aligned boxes off
|
|
1420
|
+
* rotated text by accident — handling orientation is a compile-time
|
|
1421
|
+
* obligation, not a runtime discovery. Narrow with
|
|
1422
|
+
* {@link isRotatedGeometryRun}, or use the uniform {@link glyphLooseQuad} /
|
|
1423
|
+
* {@link glyphLooseBounds} views.
|
|
1424
|
+
*/
|
|
1425
|
+
type PageGeometryRun = UprightGeometryRun | RotatedGeometryRun;
|
|
1212
1426
|
/**
|
|
1213
1427
|
* Geometry-only text layout for one page, in PDF user space (y-up). The v3
|
|
1214
1428
|
* viewer converts to content/view space via the page geometry matrix.
|
|
@@ -1220,6 +1434,22 @@ interface PageGeometryRun {
|
|
|
1220
1434
|
interface PageGeometrySnapshot {
|
|
1221
1435
|
runs: PageGeometryRun[];
|
|
1222
1436
|
}
|
|
1437
|
+
/** Narrowing guard: is this run the rotated (non-upright) variant? */
|
|
1438
|
+
declare function isRotatedGeometryRun(run: PageGeometryRun): run is RotatedGeometryRun;
|
|
1439
|
+
/**
|
|
1440
|
+
* Uniform oriented-cell view over either run variant: the glyph's loose cell
|
|
1441
|
+
* as a quad (synthesized from the box corners when the run is upright, in
|
|
1442
|
+
* the same frame-geometric slot order).
|
|
1443
|
+
*/
|
|
1444
|
+
declare function glyphLooseQuad(run: PageGeometryRun, index: number): PdfQuad;
|
|
1445
|
+
/**
|
|
1446
|
+
* Uniform AABB view over either run variant: the glyph's loose box, or the
|
|
1447
|
+
* enclosing bounds of its oriented cell when the run is rotated. The
|
|
1448
|
+
* conservative envelope for consumers that genuinely want a box (culling,
|
|
1449
|
+
* scroll targets) — never a substitute for handling orientation in geometry
|
|
1450
|
+
* that gets DRAWN.
|
|
1451
|
+
*/
|
|
1452
|
+
declare function glyphLooseBounds(run: PageGeometryRun, index: number): PdfRect;
|
|
1223
1453
|
//#endregion
|
|
1224
1454
|
//#region src/dto/PageRender.d.ts
|
|
1225
1455
|
type PageRenderEncodedFormat = 'png' | 'webp' | 'bmp';
|
|
@@ -1426,8 +1656,8 @@ interface AnnotationAppearancesQuery {
|
|
|
1426
1656
|
* (y-up), so the consumer can place the bitmap without a second read.
|
|
1427
1657
|
*
|
|
1428
1658
|
* Rotation convention: for annotations whose rotation lives in the AP
|
|
1429
|
-
* `/Matrix` — box-family kinds (square/circle/free-text/stamp) whose
|
|
1430
|
-
* carries BOTH `rotation` and `unrotatedRect` — the raster renders
|
|
1659
|
+
* `/Matrix` — box-family kinds (square/circle/free-text/stamp/caret) whose
|
|
1660
|
+
* DTO carries BOTH `rotation` and `unrotatedRect` — the raster renders
|
|
1431
1661
|
* ROTATION-STRIPPED and `rect` is the logical `unrotatedRect`; the consumer
|
|
1432
1662
|
* re-applies the DTO's `rotation` as a view transform about the box centre
|
|
1433
1663
|
* (e.g. CSS `rotate`), which makes the raster rotation-invariant (rotating
|
|
@@ -1586,6 +1816,14 @@ declare const EngineErrorCode: {
|
|
|
1586
1816
|
readonly DocOpenFailed: "DocOpenFailed";
|
|
1587
1817
|
readonly DocPasswordRequired: "DocPasswordRequired";
|
|
1588
1818
|
readonly DocPasswordIncorrect: "DocPasswordIncorrect";
|
|
1819
|
+
/**
|
|
1820
|
+
* A share-token exchange (`open({ kind: 'share' })`) needs the grant's
|
|
1821
|
+
* passphrase: none was supplied, or the supplied one was rejected —
|
|
1822
|
+
* indistinguishable by design, mirroring the server. Prompt and retry
|
|
1823
|
+
* with `sharePassword`. Distinct from `DocPasswordRequired`, which is
|
|
1824
|
+
* about the PDF's own encryption password.
|
|
1825
|
+
*/
|
|
1826
|
+
readonly SharePasswordRequired: "SharePasswordRequired";
|
|
1589
1827
|
readonly Aborted: "Aborted";
|
|
1590
1828
|
readonly Network: "Network";
|
|
1591
1829
|
readonly Unauthenticated: "Unauthenticated";
|
|
@@ -1760,6 +1998,13 @@ interface AnnotationBase {
|
|
|
1760
1998
|
rect: PdfRect;
|
|
1761
1999
|
/** /Contents text. */
|
|
1762
2000
|
contents: string | null;
|
|
2001
|
+
/**
|
|
2002
|
+
* `/Subj` — short subject line of a markup annotation (ISO 32000
|
|
2003
|
+
* §12.5.6.2, Table 172). Normalized onto the base like `contents` /
|
|
2004
|
+
* `author`: non-markup subtypes simply read `null`. Faithful read:
|
|
2005
|
+
* `null` iff the key is absent (a present-but-empty `/Subj` reads `''`).
|
|
2006
|
+
*/
|
|
2007
|
+
subject: string | null;
|
|
1763
2008
|
/** /T author. */
|
|
1764
2009
|
author: string | null;
|
|
1765
2010
|
/** ISO 8601 from /CreationDate. */
|
|
@@ -1843,6 +2088,8 @@ interface AnnotationBase {
|
|
|
1843
2088
|
*/
|
|
1844
2089
|
interface AnnotationPatchBase {
|
|
1845
2090
|
contents?: string | null;
|
|
2091
|
+
/** `/Subj`, three-state like `contents`: undefined=leave, null=remove, value=set. */
|
|
2092
|
+
subject?: string | null;
|
|
1846
2093
|
/** New appearance blend mode. Omit to preserve the current effective mode. */
|
|
1847
2094
|
blendMode?: BlendMode;
|
|
1848
2095
|
/**
|
|
@@ -2371,6 +2618,64 @@ declare function refKey(ref: AnnotationRef): string;
|
|
|
2371
2618
|
*/
|
|
2372
2619
|
declare function buildThreads(annotations: readonly AnnotationDTO[]): AnnotationThread[];
|
|
2373
2620
|
//#endregion
|
|
2621
|
+
//#region src/annotation/comments.d.ts
|
|
2622
|
+
/** One reviewer's status, derived from an ISO §12.5.6.3 state annotation. */
|
|
2623
|
+
interface ReviewStatus {
|
|
2624
|
+
/** Wire-normalized when known (`'accepted'`, …); verbatim when custom. */
|
|
2625
|
+
state: string;
|
|
2626
|
+
/** `'review'`, `'marked'`, or a custom model verbatim. */
|
|
2627
|
+
stateModel: string;
|
|
2628
|
+
/** Reviewer key: `/EMBD_Metadata` userId, else `/T`, else null. */
|
|
2629
|
+
by: string | null;
|
|
2630
|
+
/** `/M` ?? `/CreationDate` of the state annotation (ISO 8601). */
|
|
2631
|
+
at: string | null;
|
|
2632
|
+
/** The state annotation itself — for auditing or deletion. */
|
|
2633
|
+
ref: AnnotationRef;
|
|
2634
|
+
}
|
|
2635
|
+
/**
|
|
2636
|
+
* Review state of one thread. The two ISO state models are independent
|
|
2637
|
+
* axes: `byReviewer` / `lastChange` cover the review axis (the standard
|
|
2638
|
+
* `Review` model plus custom models), while the personal-checkmark
|
|
2639
|
+
* `Marked` axis lives solely in `markedBy`.
|
|
2640
|
+
*/
|
|
2641
|
+
interface CommentThreadReview {
|
|
2642
|
+
/** Latest review-axis status per reviewer key (unattributed skipped). */
|
|
2643
|
+
byReviewer: Record<string, ReviewStatus>;
|
|
2644
|
+
/** Latest review-axis change overall — a convenience, NOT a verdict. */
|
|
2645
|
+
lastChange: ReviewStatus | null;
|
|
2646
|
+
/** Reviewer keys whose latest Marked-model status is `'marked'`. */
|
|
2647
|
+
markedBy: string[];
|
|
2648
|
+
/**
|
|
2649
|
+
* Every state annotation in the thread's subtree (both axes, all
|
|
2650
|
+
* reviewers, chronological) — thread MEMBERSHIP, not status history:
|
|
2651
|
+
* deleting a whole thread must delete its state annotations too, and
|
|
2652
|
+
* the classified summaries above deliberately drop superseded refs.
|
|
2653
|
+
*/
|
|
2654
|
+
statusRefs: AnnotationRef[];
|
|
2655
|
+
/** `byReviewer[currentUserId]`; only set when the option was given. */
|
|
2656
|
+
mine?: ReviewStatus | null;
|
|
2657
|
+
}
|
|
2658
|
+
interface CommentThread<T extends AnnotationDTO = AnnotationDTO> {
|
|
2659
|
+
root: T;
|
|
2660
|
+
pageObjectNumber: PageObjectNumber;
|
|
2661
|
+
/** Whole-subtree replies, flattened chronologically; states excluded. */
|
|
2662
|
+
replies: T[];
|
|
2663
|
+
/** Every `/RT /Group` subordinate found in the subtree. */
|
|
2664
|
+
groupedParts: T[];
|
|
2665
|
+
review: CommentThreadReview;
|
|
2666
|
+
}
|
|
2667
|
+
interface BuildCommentThreadsOptions {
|
|
2668
|
+
/** Compute `review.mine` against this reviewer key. */
|
|
2669
|
+
currentUserId?: string;
|
|
2670
|
+
}
|
|
2671
|
+
/**
|
|
2672
|
+
* An ISO 32000 §12.5.6.3 state annotation: a text annotation carrying a
|
|
2673
|
+
* non-empty `/State` or `/StateModel`. Classification never relies on
|
|
2674
|
+
* flags — producers disagree on how state annotations are flagged.
|
|
2675
|
+
*/
|
|
2676
|
+
declare function isStateAnnotation(a: AnnotationDTO): boolean;
|
|
2677
|
+
declare function buildCommentThreads(annotations: readonly AnnotationDTO[], opts?: BuildCommentThreadsOptions): CommentThread[];
|
|
2678
|
+
//#endregion
|
|
2374
2679
|
//#region src/dto/LayerScopes.d.ts
|
|
2375
2680
|
/**
|
|
2376
2681
|
* Plane-scope block: a layer is a set of per-plane DELTAS
|
|
@@ -2455,6 +2760,19 @@ interface DocumentManifest {
|
|
|
2455
2760
|
* caches stay warm across unrelated edits (the `layoutVersion` design).
|
|
2456
2761
|
*/
|
|
2457
2762
|
attachmentsVersion: number;
|
|
2763
|
+
/**
|
|
2764
|
+
* Doc-level pin for the immutable whole-document annotation listing
|
|
2765
|
+
* (`/annotations/items@annotationsVersion=N`) — the cloud's one-request
|
|
2766
|
+
* hydration read. Bumps ONLY when annotation list BODIES change —
|
|
2767
|
+
* annotation create/update/delete/move, page insert/delete,
|
|
2768
|
+
* redaction-apply, flatten, and form field/widget structure — and
|
|
2769
|
+
* deliberately NOT on form value writes (widget DTOs carry no value;
|
|
2770
|
+
* only `/AP` rasters change, which the per-page `annotationVersion`
|
|
2771
|
+
* covers), metadata, attachments, or page move/rotate (bulk page order
|
|
2772
|
+
* is unspecified by contract). The same independent-cadence design as
|
|
2773
|
+
* `layoutVersion` / `metadataVersion`.
|
|
2774
|
+
*/
|
|
2775
|
+
annotationsVersion: number;
|
|
2458
2776
|
/**
|
|
2459
2777
|
* Audit-log head at this manifest's state — written in the same
|
|
2460
2778
|
* transaction as the version bumps, so an event subscriber that starts
|
|
@@ -2604,6 +2922,14 @@ type PdfLinkTargetWritable = Extract<PdfLinkTarget, {
|
|
|
2604
2922
|
interface CacheDelta {
|
|
2605
2923
|
previousDocVersion: number;
|
|
2606
2924
|
docVersion: number;
|
|
2925
|
+
/**
|
|
2926
|
+
* New doc-level bulk annotations pin, present when this mutation bumped
|
|
2927
|
+
* it (annotation CRUD, page insert/delete, redaction, flatten, form
|
|
2928
|
+
* structure — see `DocumentManifest.annotationsVersion`). Absorbing it
|
|
2929
|
+
* keeps the client's cached manifest addressing the fresh bulk leaf
|
|
2930
|
+
* without a 404-refresh round trip.
|
|
2931
|
+
*/
|
|
2932
|
+
annotationsVersion?: number;
|
|
2607
2933
|
pages: Array<{
|
|
2608
2934
|
pageObjectNumber: PageObjectNumber;
|
|
2609
2935
|
cache: CachePins;
|
|
@@ -3438,6 +3764,85 @@ interface FormRepairResult {
|
|
|
3438
3764
|
meta: MutationMeta;
|
|
3439
3765
|
}
|
|
3440
3766
|
//#endregion
|
|
3767
|
+
//#region src/text/layout.d.ts
|
|
3768
|
+
/**
|
|
3769
|
+
* One merged visual line of a text range, in PDF user space. `quad` is the
|
|
3770
|
+
* geometric authority (frame-geometric slot order: `p1..p4` = upper-start,
|
|
3771
|
+
* upper-end, lower-start, lower-end — visual semantics, NOT reading order);
|
|
3772
|
+
* `rect` is its axis-aligned bounds, produced by the same constructor.
|
|
3773
|
+
* `advance` is the READING direction along the baseline, derived from the
|
|
3774
|
+
* glyph SEQUENCE (+1 = the frame's +x), never inferred from geometry.
|
|
3775
|
+
*/
|
|
3776
|
+
interface PdfTextSegment {
|
|
3777
|
+
quad: PdfQuad;
|
|
3778
|
+
rect: PdfRect;
|
|
3779
|
+
advance: 1 | -1;
|
|
3780
|
+
}
|
|
3781
|
+
/** One glyph in its frame's space. `loose` builds segments; `tight` hit-tests. */
|
|
3782
|
+
interface TextLayoutGlyph {
|
|
3783
|
+
loose: PdfRect;
|
|
3784
|
+
tight?: PdfRect;
|
|
3785
|
+
flags: number;
|
|
3786
|
+
}
|
|
3787
|
+
/** A contiguous run of glyphs (a text object) in one frame. */
|
|
3788
|
+
interface TextLayoutRun {
|
|
3789
|
+
/** First char index — identical to the flat glyph index (runs tile the page). */
|
|
3790
|
+
charStart: number;
|
|
3791
|
+
count: number;
|
|
3792
|
+
/** Frame-local loose box (page space itself in frame 0). */
|
|
3793
|
+
rect: PdfRect;
|
|
3794
|
+
fontSize?: number;
|
|
3795
|
+
/** Index into {@link PageTextLayout.frames}; 0 = page space (upright). */
|
|
3796
|
+
frame: number;
|
|
3797
|
+
}
|
|
3798
|
+
/** An orientation cluster's orthonormal basis in page space. */
|
|
3799
|
+
interface TextLayoutFrame {
|
|
3800
|
+
/** Unit vector along the reading baseline (+x of the frame). */
|
|
3801
|
+
baseline: PdfPoint;
|
|
3802
|
+
/** Unit vector toward the ascent side (+y of the frame), ⟂ baseline. */
|
|
3803
|
+
ascent: PdfPoint;
|
|
3804
|
+
}
|
|
3805
|
+
/**
|
|
3806
|
+
* A page's text laid out per-frame: a flat glyph list (index = text-page
|
|
3807
|
+
* char index), the run structure, and the orientation frames.
|
|
3808
|
+
*/
|
|
3809
|
+
interface PageTextLayout {
|
|
3810
|
+
glyphs: TextLayoutGlyph[];
|
|
3811
|
+
runs: TextLayoutRun[];
|
|
3812
|
+
frames: TextLayoutFrame[];
|
|
3813
|
+
}
|
|
3814
|
+
/**
|
|
3815
|
+
* Flatten a page's geometry snapshot into the canonical layout. Upright runs
|
|
3816
|
+
* copy their wire boxes verbatim (frame 0 — byte-identical to the
|
|
3817
|
+
* pre-orientation behavior, wire run rects included); rotated runs project
|
|
3818
|
+
* their glyph cells into their cluster's frame.
|
|
3819
|
+
*/
|
|
3820
|
+
declare function buildPageTextLayout(snapshot: PageGeometrySnapshot): PageTextLayout;
|
|
3821
|
+
/**
|
|
3822
|
+
* The glyph (char) index at a page-space point, or null when nothing is near
|
|
3823
|
+
* (so callers can show the pointer cursor off-text). PDFium `GetIndexAtPos`:
|
|
3824
|
+
* exact tight-box containment first, then a tolerance pass (closest by
|
|
3825
|
+
* Manhattan distance within `toleranceFactor × average glyph height`). Each
|
|
3826
|
+
* run tests the point in ITS OWN frame, so rotated text hit-tests exactly.
|
|
3827
|
+
*/
|
|
3828
|
+
declare function textGlyphAt(layout: PageTextLayout, point: PdfPoint, toleranceFactor?: number): number | null;
|
|
3829
|
+
/** Double-click: the word around `glyph` (walk to space/empty glyphs both ways). */
|
|
3830
|
+
declare function expandTextRangeToWord(layout: PageTextLayout, glyph: number): [number, number];
|
|
3831
|
+
/** Triple-click: the full visual line — SAME-FRAME runs whose vertical extent
|
|
3832
|
+
* overlaps the anchor run's. A differently-oriented run is a line boundary. */
|
|
3833
|
+
declare function expandTextRangeToLine(layout: PageTextLayout, glyph: number): [number, number];
|
|
3834
|
+
/**
|
|
3835
|
+
* A single glyph's oriented cell in page space, or null for degenerate
|
|
3836
|
+
* glyphs — the anchor for caret placement at a selection boundary.
|
|
3837
|
+
*/
|
|
3838
|
+
declare function textGlyphQuad(layout: PageTextLayout, glyph: number): PdfQuad | null;
|
|
3839
|
+
/**
|
|
3840
|
+
* Merged visual-line segments for the half-open char range
|
|
3841
|
+
* `[charStart, charStart + charCount)` — THE canonical segmentation. Chars
|
|
3842
|
+
* outside the layout are ignored.
|
|
3843
|
+
*/
|
|
3844
|
+
declare function textSegmentsForRange(layout: PageTextLayout, charStart: number, charCount: number): PdfTextSegment[];
|
|
3845
|
+
//#endregion
|
|
3441
3846
|
//#region src/search/types.d.ts
|
|
3442
3847
|
/**
|
|
3443
3848
|
* What to search for — THE one shape, engine → wire → plugin state →
|
|
@@ -3548,19 +3953,26 @@ interface SearchSnippet {
|
|
|
3548
3953
|
matchLength: number;
|
|
3549
3954
|
}
|
|
3550
3955
|
/**
|
|
3551
|
-
* One hit. `charStart`/`charCount`
|
|
3552
|
-
* space — the
|
|
3553
|
-
*
|
|
3554
|
-
* (
|
|
3555
|
-
*
|
|
3556
|
-
*
|
|
3557
|
-
*
|
|
3956
|
+
* One hit. `charStart`/`charCount` are a half-open range in the page's
|
|
3957
|
+
* CHARACTER space — the space `PageGeometryRun.charStart` tiles and
|
|
3958
|
+
* selection ranges live in, NOT string offsets into `PageTextSnapshot.text`
|
|
3959
|
+
* (engines convert match string-ranges through the snapshot's `charMap`
|
|
3960
|
+
* before building the hit; see engine-core `text/charmap.ts`). That is what
|
|
3961
|
+
* lets a match join the selection subsystem — select-this-match, markup
|
|
3962
|
+
* creation — with no re-mapping, and it means zero-width characters
|
|
3963
|
+
* adjacent to the matched text are never inside the range. Snippet offsets
|
|
3964
|
+
* are the one exception: they are string offsets INTERNAL to the snippet's
|
|
3965
|
+
* own `text`. `segments` are the CANONICAL visual-line segments (the same
|
|
3966
|
+
* engine-core text layout selection uses) — a match highlights exactly like
|
|
3967
|
+
* a selection of the same characters, one oriented segment per visual line,
|
|
3968
|
+
* never per glyph. Each segment carries the exact quad, its AABB `rect`,
|
|
3969
|
+
* and the reading `advance`.
|
|
3558
3970
|
*/
|
|
3559
3971
|
interface SearchMatch {
|
|
3560
3972
|
pageObjectNumber: PageObjectNumber;
|
|
3561
3973
|
charStart: number;
|
|
3562
3974
|
charCount: number;
|
|
3563
|
-
|
|
3975
|
+
segments: PdfTextSegment[];
|
|
3564
3976
|
snippet?: SearchSnippet;
|
|
3565
3977
|
}
|
|
3566
3978
|
/**
|
|
@@ -3724,10 +4136,14 @@ declare function buildSnippet(text: string, range: SearchMatchRange, context?: n
|
|
|
3724
4136
|
//#endregion
|
|
3725
4137
|
//#region src/search/rects.d.ts
|
|
3726
4138
|
/**
|
|
3727
|
-
*
|
|
3728
|
-
*
|
|
3729
|
-
*
|
|
4139
|
+
* Match-range → canonical visual-line segments. Thin wrappers over the ONE
|
|
4140
|
+
* text layout (`src/text/layout.ts`) — search owns matching and cursors,
|
|
4141
|
+
* never segmentation, so a match highlights exactly like a selection of the
|
|
4142
|
+
* same characters. No frame or merge logic lives here.
|
|
3730
4143
|
*/
|
|
4144
|
+
/** Canonical segments for `[charStart, charStart + charCount)`. */
|
|
4145
|
+
declare function searchSegmentsForRange(snapshot: PageGeometrySnapshot, charStart: number, charCount: number): PdfTextSegment[];
|
|
4146
|
+
/** The segments' AABBs — for consumers that genuinely want boxes. */
|
|
3731
4147
|
declare function searchRectsForRange(snapshot: PageGeometrySnapshot, charStart: number, charCount: number): PdfRect[];
|
|
3732
4148
|
//#endregion
|
|
3733
4149
|
//#region src/search/epoch.d.ts
|
|
@@ -3917,6 +4333,29 @@ interface PageInsertResult {
|
|
|
3917
4333
|
cache: PageStructureCache | null;
|
|
3918
4334
|
}
|
|
3919
4335
|
//#endregion
|
|
4336
|
+
//#region src/mutation/PageInsertBlankInput.d.ts
|
|
4337
|
+
/**
|
|
4338
|
+
* Upper bound on `count` for a single `pages.insertBlank()` call. A CONTRACT
|
|
4339
|
+
* cap, enforced identically by every engine (the cloud input schema carries
|
|
4340
|
+
* the same number), so a UI never discovers a lower server limit by surprise.
|
|
4341
|
+
* Larger batches are a loop at the call site.
|
|
4342
|
+
*/
|
|
4343
|
+
declare const PAGE_INSERT_BLANK_MAX_COUNT = 100;
|
|
4344
|
+
/**
|
|
4345
|
+
* Spec for `pages.insertBlank()`: create `count` blank pages of `size`.
|
|
4346
|
+
*
|
|
4347
|
+
* `size` is explicit and in PDF points, un-rotated — the same convention as
|
|
4348
|
+
* `PageLayout.size`. The "match my neighbour" default developers expect is a
|
|
4349
|
+
* registry read, so it lives in the page-edit capability, not here: the
|
|
4350
|
+
* engine wire never guesses (the `rotateBy` law).
|
|
4351
|
+
*/
|
|
4352
|
+
interface PageInsertBlankSpec {
|
|
4353
|
+
/** Page size in PDF points. Both dimensions must be finite and > 0. */
|
|
4354
|
+
size: PdfSize;
|
|
4355
|
+
/** Pages to create, in `[1, PAGE_INSERT_BLANK_MAX_COUNT]`. Default 1. */
|
|
4356
|
+
count?: number;
|
|
4357
|
+
}
|
|
4358
|
+
//#endregion
|
|
3920
4359
|
//#region src/mutation/PageFlattenResult.d.ts
|
|
3921
4360
|
type PageFlattenUsage = 'display' | 'print';
|
|
3922
4361
|
type PageFlattenStatus = 'applied' | 'unchanged' | 'failed' | 'skipped';
|
|
@@ -4558,6 +4997,9 @@ interface CaretDraft extends AnnotationDraftBase, ColorStyleDraftFields {
|
|
|
4558
4997
|
rect: PdfRect;
|
|
4559
4998
|
/** `/RD` inset of the drawn caret from `/Rect`. */
|
|
4560
4999
|
rectDifferences?: PdfRectDifferences | null;
|
|
5000
|
+
/** Tri-state box-rotation pair (see the DTO): omitted/`null` = upright. */
|
|
5001
|
+
rotation?: number | null;
|
|
5002
|
+
unrotatedRect?: PdfRect | null;
|
|
4561
5003
|
}
|
|
4562
5004
|
//#endregion
|
|
4563
5005
|
//#region src/annotation/kinds/caret/dto.d.ts
|
|
@@ -4565,6 +5007,12 @@ interface CaretDraft extends AnnotationDraftBase, ColorStyleDraftFields {
|
|
|
4565
5007
|
* Caret annotation — a visual marker for a proposed text insertion or edit
|
|
4566
5008
|
* point. It carries no geometry of its own beyond `/Rect`: just a `/C` color,
|
|
4567
5009
|
* `/CA` opacity, and an optional `/RD` inset of the drawn symbol from `/Rect`.
|
|
5010
|
+
*
|
|
5011
|
+
* A caret anchored to ROTATED text carries the box-family rotation pair:
|
|
5012
|
+
* `rotation` (`/EMBD_Metadata/Rotation`, PDF-convention degrees) tilts the
|
|
5013
|
+
* baked symbol to ride its text's baseline, `unrotatedRect` is the logical
|
|
5014
|
+
* box, and `/Rect` stays the rotated visual AABB — exactly the shape/free-text
|
|
5015
|
+
* contract, so the generic AP machinery bakes it.
|
|
4568
5016
|
*/
|
|
4569
5017
|
type CaretAnnotationDTO = AnnotationBase & ColorStyleFields & {
|
|
4570
5018
|
subtype: 'caret';
|
|
@@ -4572,6 +5020,10 @@ type CaretAnnotationDTO = AnnotationBase & ColorStyleFields & {
|
|
|
4572
5020
|
intent: CaretIntent | null;
|
|
4573
5021
|
/** `/RD` inset of the drawn caret from `/Rect`; `null` when absent. */
|
|
4574
5022
|
rectDifferences: PdfRectDifferences | null;
|
|
5023
|
+
/** `/EMBD_Metadata/Rotation` — degrees, normalized `[0,360)`. */
|
|
5024
|
+
rotation?: number;
|
|
5025
|
+
/** `/EMBD_Metadata/UnrotatedRect` — the logical box (required when rotation != 0). */
|
|
5026
|
+
unrotatedRect?: PdfRect;
|
|
4575
5027
|
};
|
|
4576
5028
|
//#endregion
|
|
4577
5029
|
//#region src/annotation/kinds/caret/patch.d.ts
|
|
@@ -4581,6 +5033,10 @@ interface CaretPatch extends AnnotationPatchBase, ColorStylePatchFields {
|
|
|
4581
5033
|
rect?: PdfRect;
|
|
4582
5034
|
/** Tri-state: omitted preserves, a value sets, `null` removes `/RD`. */
|
|
4583
5035
|
rectDifferences?: PdfRectDifferences | null;
|
|
5036
|
+
/** Tri-state: omitted preserves, `null`/`0` flattens, a value sets (needs the box). */
|
|
5037
|
+
rotation?: number | null;
|
|
5038
|
+
/** Tri-state: omitted preserves, `null` removes, a value sets. */
|
|
5039
|
+
unrotatedRect?: PdfRect | null;
|
|
4584
5040
|
}
|
|
4585
5041
|
//#endregion
|
|
4586
5042
|
//#region src/annotation/kinds/caret/schema.d.ts
|
|
@@ -4608,6 +5064,16 @@ interface TextDraft extends AnnotationDraftBase, ColorStyleDraftFields {
|
|
|
4608
5064
|
rect: PdfRect;
|
|
4609
5065
|
/** `/Name` icon. Default `'note'` (the ISO 32000 default). */
|
|
4610
5066
|
icon?: NoteIcon;
|
|
5067
|
+
/**
|
|
5068
|
+
* Write `/State` + `/StateModel`, making this draft an ISO 32000
|
|
5069
|
+
* §12.5.6.3 review-status reply (pair with `inReplyTo` → the annotation
|
|
5070
|
+
* under review). `state` requires `stateModel` — the engine throws
|
|
5071
|
+
* `InvalidArg` otherwise. `stateModel` alone is valid: the model's
|
|
5072
|
+
* default state applies (`none` for review, `unmarked` for marked).
|
|
5073
|
+
*/
|
|
5074
|
+
state?: AnnotationState;
|
|
5075
|
+
/** See {@link state}. */
|
|
5076
|
+
stateModel?: AnnotationStateModel;
|
|
4611
5077
|
}
|
|
4612
5078
|
//#endregion
|
|
4613
5079
|
//#region src/annotation/kinds/text/dto.d.ts
|
|
@@ -4621,6 +5087,17 @@ type TextAnnotationDTO = AnnotationBase & ColorStyleFields & {
|
|
|
4621
5087
|
subtype: 'text';
|
|
4622
5088
|
/** `/Name` icon; an absent `/Name` reads as `'note'` (the ISO default). */
|
|
4623
5089
|
icon: NoteIcon;
|
|
5090
|
+
/**
|
|
5091
|
+
* `/State` — ISO 32000 §12.5.6.3 annotation state, carried by a
|
|
5092
|
+
* review-status reply (a text annotation whose `inReplyTo` points at
|
|
5093
|
+
* the annotation being reviewed). Faithful read: `null` iff the key
|
|
5094
|
+
* is absent. ISO defaulting — a `stateModel` present with no explicit
|
|
5095
|
+
* `state` implies `none` (review) / `unmarked` (marked) — is a
|
|
5096
|
+
* thread-composer concern, deliberately not applied here.
|
|
5097
|
+
*/
|
|
5098
|
+
state: AnnotationState | null;
|
|
5099
|
+
/** `/StateModel` — see {@link state}. `null` iff the key is absent. */
|
|
5100
|
+
stateModel: AnnotationStateModel | null;
|
|
4624
5101
|
};
|
|
4625
5102
|
//#endregion
|
|
4626
5103
|
//#region src/annotation/kinds/text/patch.d.ts
|
|
@@ -4628,6 +5105,10 @@ interface TextPatch extends AnnotationPatchBase, ColorStylePatchFields {
|
|
|
4628
5105
|
subtype: 'text';
|
|
4629
5106
|
rect?: PdfRect;
|
|
4630
5107
|
icon?: NoteIcon;
|
|
5108
|
+
/** `/State`, three-state: undefined=leave, null=remove the entry, value=set. */
|
|
5109
|
+
state?: AnnotationState | null;
|
|
5110
|
+
/** `/StateModel`, three-state: undefined=leave, null=remove the entry, value=set. */
|
|
5111
|
+
stateModel?: AnnotationStateModel | null;
|
|
4631
5112
|
}
|
|
4632
5113
|
//#endregion
|
|
4633
5114
|
//#region src/annotation/kinds/text/schema.d.ts
|
|
@@ -5019,11 +5500,27 @@ declare const AnnotationPatchSchema: z.ZodType<WireAnnotationPatch>;
|
|
|
5019
5500
|
/**
|
|
5020
5501
|
* Whole-document raw read response. Returned by
|
|
5021
5502
|
* `DocumentAnnotationsService.listRawAll()` and over the wire as the
|
|
5022
|
-
* cloud layer annotation reads.
|
|
5023
|
-
*
|
|
5503
|
+
* cloud layer annotation reads.
|
|
5504
|
+
*
|
|
5505
|
+
* One entry per page. ORDER IS UNSPECIFIED — the local engine serves
|
|
5506
|
+
* document order while the cloud engine serves manifest (pageObjectNumber
|
|
5507
|
+
* registry) order; join `pageState.pageObjectNumber` against
|
|
5508
|
+
* `pages.list()` when display order matters.
|
|
5024
5509
|
*/
|
|
5025
5510
|
interface AnnotationListSnapshotAllPages {
|
|
5026
5511
|
pages: AnnotationListPageSnapshot[];
|
|
5512
|
+
/**
|
|
5513
|
+
* Audit-log position this snapshot is consistent with (cloud only;
|
|
5514
|
+
* absent locally, where no audit log exists). Every page reflects
|
|
5515
|
+
* exactly the mutations with `serverId <= auditHead` and none newer —
|
|
5516
|
+
* the reads are pinned to one manifest, whose `auditHead` is written in
|
|
5517
|
+
* the same transaction as its version bumps.
|
|
5518
|
+
*
|
|
5519
|
+
* This is the reconciliation cursor for consumers that keep a snapshot
|
|
5520
|
+
* fresh from `doc.events`: drop events with `origin.serverId <=
|
|
5521
|
+
* auditHead` (already inside the snapshot), apply the rest.
|
|
5522
|
+
*/
|
|
5523
|
+
auditHead?: number;
|
|
5027
5524
|
}
|
|
5028
5525
|
/**
|
|
5029
5526
|
* Single-page raw or full read response. Returned by
|
|
@@ -5039,5 +5536,5 @@ interface AnnotationListPageSnapshot {
|
|
|
5039
5536
|
annotations: AnnotationDTO[];
|
|
5040
5537
|
}
|
|
5041
5538
|
//#endregion
|
|
5042
|
-
export { CaretDraftSchema as $, AnnotationIdentityQuality as $a, LayerScopes as $i, searchRectsForRange as $n, pdfQuadCorners as $o, ListBoxFieldDraft as $r, revisionTokensEqual as $s, CircleDraftSchema as $t, FileAttachmentWireDraftSchema as A, EmbeddedFileItem as Aa, PdfSize as Ac, AnnotationCreateResult as Ai, HighlightDraft as An, PageImageHandle as Ao, FormFieldDeleteResult as Ar, filterMatches as As, LineDraft as At, StampAnnotationDTO as B, BinarySource as Ba, PdfPageActions as Bc, changesAnnotationList as Bi, PageFlattenStatus as Bn, PageRenderOptions as Bo, FormFieldDisplay as Br, CollabEntity as Bs, PolygonPatch as Bt, RedactDraft as C, GeometryStyleDraftFields as Ca, InkList as Cc, ToggleFieldWidget as Ci, UnderlineAnnotationDTO as Cn, AnnotationAppearancesQuery as Co, SearchQuery as Cr, CollabTarget as Cs, LinkAnnotationDTO as Ct, FileAttachmentDTOSchema as D, AttachmentFileBase as Da, PdfQuad as Dc, FormWidgetRef as Di, HighlightPatchSchema as Dn, WeakAnnotationState as Do, SearchSnippet as Dr, checkSetGroup as Ds, LinePatchSchema as Dt, WidgetDraft as E, AttachmentContent as Ea, PdfPoint as Ec, FormFieldRef as Ei, HighlightDraftSchema as En, UNKNOWN_WEAK_ANNOTATION_STATE as Eo, SearchSliceBudget as Er, checkCollab as Es, LineDraftSchema as Et, StampDTOSchema as F, normalizeAnnotationPatch as Fa, PdfActionTree as Fc, AppearanceImpact as Fi, RedactionApplyScope as Fn, PageNetworkRenderFormat as Fo, FormWidgetLinkResult as Fr, validateScopeArray as Fs, PolylineAnnotationDTO as Ft, TextDTOSchema as G, ANNOTATION_SUBTYPES as Ga, CacheDelta as Gi, PageRotateResult as Gn, PageGeometryGlyph as Go, FormFieldPatch as Gr, ParsedCollab as Gs, VertexPatchFields as Gt, StampFit as H, WireResource as Ha, DocumentMetadataTrapped as Hc, shiftsExistingAnnotationIndices as Hi, PageInsertResult as Hn, PageRenderTarget as Ho, FormFieldValue as Hr, DocCapability as Hs, PolygonDraft as Ht, StampWireDraftSchema as I, BinaryMetadata as Ia, PdfActionType as Ic, AppearanceOutcome as Ii, RedactionApplyStatus as In, PageRaster as Io, FormEffect as Ir, PDF_BITS as Is, PolylineDraft as It, TextPatch as J, PDF_SUBTYPE_TO_CODE as Ja, PdfLinkTargetWritable as Ji, PageMoveResult as Jn, PageTextSnapshot as Jo, TextFieldPatch as Jr, ParsedWildcard as Js, SquarePatchSchema as Jt, TextDraftSchema as K, AnnotationSubtype as Ka, MutationMeta as Ki, PageRotateInput as Kn, PageGeometryRun as Ko, ListBoxFieldPatch as Kr, ParsedScope as Ks, SquareDTOSchema as Kt, StampWirePatchSchema as L, BinaryMimeType as La, PdfActionWarning as Lc, appearanceImpactOf as Li, PageFlattenInput as Ln, PageRenderBackground as Lo, FormEffectResult as Lr, decodePdfBits as Ls, PolygonDTOSchema as Lt, FileAttachmentPatch as M, NormalizedDraft as Ma, DocumentActionsSnapshot as Mc, AnnotationMoveResult as Mi, MetadataUpdateResult as Mn, PageImageOptions as Mo, FormImportResult as Mr, MissingIdentity as Ms, PolylineDraftSchema as Mt, FileAttachmentAnnotationDTO as N, NormalizedPatch as Na, NamedJavaScriptAction as Nc, AnnotationUpdateResult as Ni, RedactionApplyItemResult as Nn, PageImageResult as No, FormRepairResult as Nr, PermissionDenied as Ns, PolylinePatchSchema as Nt, FileAttachmentIconSchema as O, AttachmentFileInfo as Oa, PdfRect as Oc, decodeFieldRefKey as Oi, HighlightPatch as On, knownWeakAnnotationState as Oo, FormDataExport as Or, expandRawScope as Os, LinePatch as Ot, ResourceRefSchema as P, normalizeAnnotationDraft as Pa, PdfActionNode as Pc, AppearanceAction as Pi, RedactionApplyResult as Pn, PageImageSource as Po, FormSetValueResult as Pr, parseScope as Ps, PolylinePatch as Pt, CaretDTOSchema as Q, AnnotationBase as Qa, LayerScopePlane as Qi, searchContentEpoch as Qn, pdfQuadBounds as Qo, FormFieldOptionInput as Qr, RevisionToken as Qs, CircleDTOSchema as Qt, StampPatch as R, sniffBinaryMetadata as Ra, PdfAnnotationActions as Rc, semanticEqual as Ri, PageFlattenItemResult as Rn, PageRenderEncodedFormat as Ro, FormEffectStatus as Rr, AnnotationActor as Rs, PolygonDraftSchema as Rt, RedactAnnotationDTO as S, FilledStylePatchFields as Sa, CalloutLine as Sc, TextFieldDTO as Si, UnderlinePatch as Sn, AnnotationAppearanceRenderOptions as So, SearchMode as Sr, pdfPermissions as Ss, LinkPatch as St, WidgetAnnotationDTO as T, GeometryStylePatchFields as Ta, LinePoints as Tc, FormValueEntry as Ti, HighlightDTOSchema as Tn, PageState as To, SearchSlice as Tr, checkCapability as Ts, LineDTOSchema as Tt, StampWireDraft as U, WireResourceMap as Ua, AnnotationListMutationMeta as Ui, PageDeleteResult as Un, PageRenderViewport as Uo, CheckboxFieldPatch as Ur, IdentityClaims as Us, VertexAnnotationFields as Ut, StampDraft as V, ResourceRef as Va, DocumentMetadata as Vc, invalidatesWeakIndexRefs as Vi, PageFlattenUsage as Vn, PageRenderQuery as Vo, FormDataFormat as Vr, CollabFilter as Vs, PolygonAnnotationDTO as Vt, NoteIconSchema as W, resolveBinarySource as Wa, RefetchReason as Wi, PageDeleteInput as Wn, createPageImageHandle as Wo, ComboBoxFieldPatch as Wr, ParsedCapability as Ws, VertexDraftFields as Wt, NoteIcon as X, subtypeFromCode as Xa, DocumentManifest as Xi, PageMoveInput as Xn, PdfQuadCorners as Xo, ComboBoxFieldDraft as Xr, AnnotationDraftBase as Xs, SquareAnnotationDTO as Xt, TextAnnotationDTO as Y, PdfAnnotationSubtypeCode as Ya, PdfDestination as Yi, PageStructureCache as Yn, PdfOriginSize as Yo, CheckboxFieldDraft as Yr, PdfBits as Ys, SquarePatch as Yt, TextDraft as Z, AnnotationPatchBase as Za, ManifestPage as Zi, canonicalSearchQuery as Zn, normalizePdfRect as Zo, FormFieldDraft as Zr, AnnotationRef as Zs, SquareDraft as Zt, UnsupportedPatchSchema as _, ColorStyleDraftFields as _a, Rotation as _c, FormFieldOrigin as _i, SquigglyAnnotationDTO as _n, AnnotationAppearanceImagesResult as _o, SEARCH_FOLD_VERSION as _r, OpenOptions as _s, LinkDraftSchema as _t, AnnotationDTOSchema as a, AnnotationKindModule as aa, BlendMode as ac, WidgetAppearance as ai, ShapeDraftFields as an, SerializedEngineError as ao, SearchQueryValidation as ar, pdfRectWidth as as, FreeTextDraftSchema as at, UnsupportedAnnotationDTO as b, FilledStyleDraftFields as ba, StrikeoutIntent as bc, RadioFieldDTO as bi, UnderlineDraftSchema as bn, AnnotationAppearanceMode as bo, toOriginalRange as br, collab as bs, PdfLinkTargetSchema as bt, AnnotationKind as c, PatchOfKind as ca, FreeTextFont as cc, WidgetStyleFields as ci, StrikeoutDraftSchema as cn, EngineErrorCode as co, matchRegex as cr, PageLayout as cs, FreeTextAnnotationDTO as ct, AnnotationSubtypeOfKind as d, AttachmentsCache as da, LineEnding as dc, ComboBoxFieldDTO as di, StrikeoutAnnotationDTO as dn, FontSpec as do, foldOptionsFor as dr, OpenInput as ds, InkDraftSchema as dt, AnnotationRelationKind as ea, PageObjectNumber as ec, RadioFieldDraft as ei, CirclePatchSchema as en, AnnotationStableId as eo, SEARCH_SNIPPET_CONTEXT as er, pdfQuadFromCorners as es, CaretPatchSchema as et, KIND_BY_SUBTYPE as f, normalizeAttachmentFileSource as fa, LineEndings as fc, FormFieldBase as fi, StrikeoutDraft as fn, DEFAULT_PDF_SAVE_MODE as fo, matchLiteral as fr, OpenInputById as fs, InkPatchSchema as ft, UnsupportedDraftSchema as g, WireAttachmentFile as ga, Rect as gc, FormFieldOption as gi, SquigglyPatch as gn, AnnotationAppearanceImageOptions as go, FoldedText as gr, OpenInputToken as gs, LinkDTOSchema as gt, UnsupportedDTOSchema as h, FileAttachmentWireDraft as ha, Point as hc, FormFieldFlags as hi, SquigglyPatchSchema as hn, AnnotationAppearanceImage as ho, FoldOptions as hr, OpenInputLayerSource as hs, InkDraft as ht, AnnotationDTO as i, refKey as ia, AnnotationReplyType as ic, FormSnapshot as ii, ShapeAnnotationFields as in, EngineErrorOptions as io, SearchQueryIssue as ir, pdfRectToOriginSize as is, FreeTextDTOSchema as it, WireAttachmentFileSchema as j, EmbeddedFileRef as ja, ActionReadBudget as jc, AnnotationDeleteResult as ji, MetadataCache as jn, PageImageObjectUrl as jo, FormFieldUpdateResult as jr, InvalidScope as js, PolylineDTOSchema as jt, FileAttachmentPatchSchema as k, AttachmentFileSource as ka, PdfRotation as kc, encodeFieldRefKey as ki, HighlightAnnotationDTO as kn, PageImageBlobSource as ko, FormFieldCreateResult as kr, expandedCapabilities as ks, LineAnnotationDTO as kt, AnnotationPatch as l, AttachmentCreateResult as la, FreeTextIntent as lc, WidgetStylePatchFields as li, StrikeoutPatchSchema as ln, FontHandle as lo, validateSearchQuery as lr, PageRotation as ls, FreeTextDraft as lt, WireAnnotationPatch as m, FileAttachmentIcon as ma, PdfRectDifferences as mc, FormFieldFamily as mi, SquigglyDraftSchema as mn, CachePins as mo, wordBefore as mr, OpenInputLayerBytes as ms, InkAnnotationDTO as mt, AnnotationListSnapshotAllPages as n, buildThreads as na, AnnotationBorderStyle as nc, WidgetPlacement as ni, CircleAnnotationDTO as nn, encodeStableIdKey as no, matchPageText as nr, pdfRectHeight as ns, CaretAnnotationDTO as nt, AnnotationDraft as o, DTOOfKind as oa, CaretIntent as oc, WidgetAppearanceSchema as oi, ShapePatchFields as on, deserializeError as oo, SearchRegexIssue as or, PageListSnapshot as os, FreeTextPatchSchema as ot, WireAnnotationDraft as p, FileAttachmentDraft as pa, NO_ANNOTATION_FLAGS as pc, FormFieldDTO as pi, SquigglyDTOSchema as pn, PdfSaveMode as po, wordAt as pr, OpenInputBytes as ps, InkPatch as pt, TextPatchSchema as q, PDF_CODE_TO_SUBTYPE as qa, PdfLinkTarget as qi, PageMoveCache as qn, PageGeometrySnapshot as qo, RadioFieldPatch as qr, ParsedVirtual as qs, SquareDraftSchema as qt, ANNOTATION_KINDS as r, classifyRelation as ra, AnnotationFlags as rc, FormKind as ri, CircleDraft as rn, EngineError as ro, SEARCH_REGEX_MAX_LENGTH as rr, pdfRectSize as rs, CaretDraft as rt, AnnotationDraftSchema as s, DraftOfKind as sa, Color as sc, WidgetStyleDraftFields as si, StrikeoutDTOSchema as sn, serializeError as so, SearchRegexValidation as sr, PageBoxes as ss, FreeTextPatch as st, AnnotationListPageSnapshot as t, AnnotationThread as ta, isValidPageObjectNumber as tc, TextFieldDraft as ti, CirclePatch as tn, decodeStableIdKey as to, buildSnippet as tr, pdfRectFromOriginSize as ts, CaretPatch as tt, AnnotationPatchSchema as u, AttachmentDeleteResult as ua, InkIntent as uc, CheckboxFieldDTO as ui, StrikeoutPatch as un, FontKey as uo, validateSearchRegex as ur, MetadataPatch as us, InkDTOSchema as ut, UnsupportedPatch as v, ColorStyleFields as va, Size as vc, ListBoxFieldDTO as vi, SquigglyDraft as vn, AnnotationAppearanceManifest as vo, SearchMatchRange as vr, TokenSource as vs, LinkPatchSchema as vt, WidgetPatch as w, GeometryStyleFields as wa, InkStroke as wc, UnknownFieldDTO as wi, UnderlineDraft as wn, AnnotationAppearancesResult as wo, SearchRequest as wr, checkAnyCapability as ws, LinkDraft as wt, RedactPatch as x, FilledStyleFields as xa, TextAlignment as xc, SignatureFieldDTO as xi, UnderlinePatchSchema as xn, AnnotationAppearanceRaster as xo, SearchMatch as xr, materializePdfPermissions as xs, PdfLinkTargetWritableSchema as xt, UnsupportedDraft as y, ColorStylePatchFields as ya, StandardFont as yc, PushButtonFieldDTO as yi, UnderlineDTOSchema as yn, AnnotationAppearanceManifestEntry as yo, foldText as yr, caps as ys, PdfDestinationSchema as yt, StampWirePatch as z, BinaryPayload as za, PdfFieldActions as zc, AnnotationMutationKind as zi, PageFlattenResult as zn, PageRenderFormat as zo, FormEffectsResult as zr, CollabAction as zs, PolygonPatchSchema as zt };
|
|
5043
|
-
//# sourceMappingURL=AnnotationListSnapshot-
|
|
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
|