pdf-parser.js 3.0.8 → 4.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +105 -54
- package/dist/{afm-widths-Dxucrg7D.js → afm-widths-BTu0IDp2.cjs} +1517 -4
- package/dist/{afm-widths-DyDq56Ph.d.cts → afm-widths-CneRyu5l.d.cts} +1 -1
- package/dist/{afm-widths-DyDq56Ph.d.ts → afm-widths-CneRyu5l.d.ts} +1 -1
- package/dist/{afm-widths-BoeTOK2r.cjs → afm-widths-De_QMWgC.js} +1416 -51
- package/dist/afm-widths.cjs +1 -1
- package/dist/afm-widths.d.cts +1 -1
- package/dist/afm-widths.d.ts +1 -1
- package/dist/afm-widths.js +1 -1
- package/dist/annotations.cjs +104 -0
- package/dist/annotations.d.cts +9 -0
- package/dist/annotations.d.ts +9 -0
- package/dist/annotations.js +103 -0
- package/dist/attachments.cjs +65 -0
- package/dist/attachments.d.cts +8 -0
- package/dist/attachments.d.ts +8 -0
- package/dist/attachments.js +64 -0
- package/dist/builtin-encoding.cjs +221 -0
- package/dist/builtin-encoding.d.cts +8 -0
- package/dist/builtin-encoding.d.ts +8 -0
- package/dist/builtin-encoding.js +220 -0
- package/dist/bytes/flate.cjs +1 -1
- package/dist/bytes/flate.js +1 -1
- package/dist/cff.cjs +14 -0
- package/dist/cff.d.cts +4 -1
- package/dist/cff.d.ts +4 -1
- package/dist/cff.js +12 -1
- package/dist/cmap-table.cjs +76 -13
- package/dist/cmap-table.d.cts +9 -1
- package/dist/cmap-table.d.ts +9 -1
- package/dist/cmap-table.js +77 -15
- package/dist/codec.cjs +1 -1
- package/dist/codec.d.cts +134 -0
- package/dist/codec.d.ts +134 -0
- package/dist/codec.js +1 -1
- package/dist/content-read.cjs +1 -1
- package/dist/content-read.d.cts +3 -3
- package/dist/content-read.d.ts +3 -3
- package/dist/content-read.js +1 -1
- package/dist/content-write.cjs +32 -10
- package/dist/content-write.d.cts +12 -5
- package/dist/content-write.d.ts +12 -5
- package/dist/content-write.js +32 -10
- package/dist/crypto/random.cjs +9 -0
- package/dist/crypto/random.d.cts +4 -0
- package/dist/crypto/random.d.ts +4 -0
- package/dist/crypto/random.js +8 -0
- package/dist/diagnostics.d.cts +1 -1
- package/dist/diagnostics.d.ts +1 -1
- package/dist/document.cjs +12 -3
- package/dist/document.d.cts +3 -1
- package/dist/document.d.ts +3 -1
- package/dist/document.js +12 -3
- package/dist/{embedded-font-fREdbxnr.d.ts → embedded-font-B4p9a3O3.d.ts} +3 -1
- package/dist/{embedded-font-BU6Jgcof.d.cts → embedded-font-oc65VGlr.d.cts} +3 -1
- package/dist/embedded-font-write.cjs +1 -1
- package/dist/embedded-font-write.d.cts +3 -3
- package/dist/embedded-font-write.d.ts +3 -3
- package/dist/embedded-font-write.js +1 -1
- package/dist/embedded-font.cjs +46 -15
- package/dist/embedded-font.d.cts +1 -1
- package/dist/embedded-font.d.ts +1 -1
- package/dist/embedded-font.js +46 -15
- package/dist/encoding.cjs +10 -1
- package/dist/encoding.d.cts +10 -1
- package/dist/encoding.d.ts +10 -1
- package/dist/encoding.js +2 -2
- package/dist/encrypt-write.cjs +234 -0
- package/dist/encrypt-write.d.cts +31 -0
- package/dist/encrypt-write.d.ts +31 -0
- package/dist/encrypt-write.js +231 -0
- package/dist/encrypt.cjs +51 -21
- package/dist/encrypt.d.cts +19 -3
- package/dist/encrypt.d.ts +19 -3
- package/dist/encrypt.js +36 -22
- package/dist/filters.cjs +18 -14
- package/dist/filters.d.cts +1 -1
- package/dist/filters.d.ts +1 -1
- package/dist/filters.js +18 -14
- package/dist/font-read.cjs +68 -13
- package/dist/font-read.d.cts +1 -1
- package/dist/font-read.d.ts +1 -1
- package/dist/font-read.js +69 -14
- package/dist/font-registry.cjs +1 -1
- package/dist/font-registry.d.cts +4 -4
- package/dist/font-registry.d.ts +4 -4
- package/dist/font-registry.js +1 -1
- package/dist/font-substitutes.d.cts +1 -1
- package/dist/font-substitutes.d.ts +1 -1
- package/dist/font-tables.cjs +31 -0
- package/dist/font-tables.d.cts +3 -1
- package/dist/font-tables.d.ts +3 -1
- package/dist/font-tables.js +31 -2
- package/dist/fonts.d.cts +2 -2
- package/dist/fonts.d.ts +2 -2
- package/dist/form.cjs +138 -0
- package/dist/form.d.cts +9 -0
- package/dist/form.d.ts +9 -0
- package/dist/form.js +137 -0
- package/dist/gsub-table-BRTQ8EUW.d.ts +10 -0
- package/dist/gsub-table-URczLd85.d.cts +10 -0
- package/dist/gsub-table.cjs +225 -0
- package/dist/gsub-table.d.cts +2 -0
- package/dist/gsub-table.d.ts +2 -0
- package/dist/gsub-table.js +224 -0
- package/dist/image/ccitt-encode.cjs +119 -0
- package/dist/image/ccitt-encode.d.cts +9 -0
- package/dist/image/ccitt-encode.d.ts +9 -0
- package/dist/image/ccitt-encode.js +118 -0
- package/dist/image/ccitt.cjs +3 -0
- package/dist/image/ccitt.d.cts +4 -1
- package/dist/image/ccitt.d.ts +4 -1
- package/dist/image/ccitt.js +1 -1
- package/dist/image/jbig2-bitmap.d.cts +1 -1
- package/dist/image/jbig2-bitmap.d.ts +1 -1
- package/dist/image/jbig2.cjs +3 -1
- package/dist/image/jbig2.js +3 -1
- package/dist/image/jp2-boxes.d.cts +1 -1
- package/dist/image/jp2-boxes.d.ts +1 -1
- package/dist/image/jpeg2000-codestream.d.cts +3 -3
- package/dist/image/jpeg2000-codestream.d.ts +3 -3
- package/dist/image/jpeg2000-t1.d.cts +1 -1
- package/dist/image/jpeg2000-t1.d.ts +1 -1
- package/dist/image/jpeg2000.cjs +1 -0
- package/dist/image/jpeg2000.d.cts +3 -0
- package/dist/image/jpeg2000.d.ts +3 -0
- package/dist/image/jpeg2000.js +1 -0
- package/dist/image/png-decode.cjs +1 -1
- package/dist/image/png-decode.js +1 -1
- package/dist/image/png-filter.d.cts +1 -1
- package/dist/image/png-filter.d.ts +1 -1
- package/dist/images-read.cjs +18 -12
- package/dist/images-read.d.cts +2 -2
- package/dist/images-read.d.ts +2 -2
- package/dist/images-read.js +15 -9
- package/dist/index.cjs +17 -4
- package/dist/index.d.cts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +6 -5
- package/dist/interpret.cjs +178 -56
- package/dist/interpret.d.cts +27 -12
- package/dist/interpret.d.ts +27 -12
- package/dist/interpret.js +178 -56
- package/dist/layout.cjs +149 -2
- package/dist/layout.d.cts +394 -1
- package/dist/layout.d.ts +394 -1
- package/dist/layout.js +140 -4
- package/dist/lexer.d.cts +9 -9
- package/dist/lexer.d.ts +9 -9
- package/dist/math-content-write.cjs +1 -1
- package/dist/math-content-write.js +1 -1
- package/dist/math-font-write.cjs +1 -1
- package/dist/math-font-write.d.cts +1 -1
- package/dist/math-font-write.d.ts +1 -1
- package/dist/math-font-write.js +1 -1
- package/dist/math-font.cjs +2 -2
- package/dist/math-font.d.cts +1 -1
- package/dist/math-font.d.ts +1 -1
- package/dist/math-font.js +2 -2
- package/dist/{math-stretch-a_rHNRvc.d.ts → math-stretch-BbC2o4Br.d.ts} +1 -1
- package/dist/{math-stretch-E26z6byT.d.cts → math-stretch-C2JanDAz.d.cts} +1 -1
- package/dist/math-stretch.d.cts +1 -1
- package/dist/math-stretch.d.ts +1 -1
- package/dist/measure.cjs +1 -1
- package/dist/measure.d.cts +1 -1
- package/dist/measure.d.ts +1 -1
- package/dist/measure.js +1 -1
- package/dist/names.cjs +41 -0
- package/dist/names.d.cts +11 -0
- package/dist/names.d.ts +11 -0
- package/dist/names.js +40 -0
- package/dist/navigation.cjs +210 -0
- package/dist/navigation.d.cts +18 -0
- package/dist/navigation.d.ts +18 -0
- package/dist/navigation.js +207 -0
- package/dist/notes-annotation-author.cjs +5 -0
- package/dist/notes-annotation-author.d.cts +4 -0
- package/dist/notes-annotation-author.d.ts +4 -0
- package/dist/notes-annotation-author.js +4 -0
- package/dist/objects-B7HdMeWS.d.cts +59 -0
- package/dist/objects-B7HdMeWS.d.ts +59 -0
- package/dist/objects.d.cts +1 -58
- package/dist/objects.d.ts +1 -58
- package/dist/optional-content.cjs +63 -0
- package/dist/optional-content.d.cts +12 -0
- package/dist/optional-content.d.ts +12 -0
- package/dist/optional-content.js +62 -0
- package/dist/parse.cjs +1 -1
- package/dist/parse.d.cts +2 -2
- package/dist/parse.d.ts +2 -2
- package/dist/parse.js +1 -1
- package/dist/pdf-text.cjs +21 -0
- package/dist/pdf-text.d.cts +5 -0
- package/dist/pdf-text.d.ts +5 -0
- package/dist/pdf-text.js +19 -0
- package/dist/predictors.d.cts +1 -1
- package/dist/predictors.d.ts +1 -1
- package/dist/read.cjs +287 -72
- package/dist/read.d.cts +2 -4
- package/dist/read.d.ts +2 -4
- package/dist/read.js +284 -67
- package/dist/serialize.cjs +5 -1
- package/dist/serialize.d.cts +3 -2
- package/dist/serialize.d.ts +3 -2
- package/dist/serialize.js +5 -2
- package/dist/sfnt-subset.cjs +10 -3
- package/dist/sfnt-subset.d.cts +1 -1
- package/dist/sfnt-subset.d.ts +1 -1
- package/dist/sfnt-subset.js +10 -3
- package/dist/structure.cjs +184 -0
- package/dist/structure.d.cts +12 -0
- package/dist/structure.d.ts +12 -0
- package/dist/structure.js +183 -0
- package/dist/tounicode.cjs +8 -3
- package/dist/tounicode.d.cts +2 -2
- package/dist/tounicode.d.ts +2 -2
- package/dist/tounicode.js +8 -3
- package/dist/util/base64.cjs +4 -4
- package/dist/util/base64.js +4 -4
- package/dist/winansi.cjs +1 -1
- package/dist/winansi.d.cts +1 -1
- package/dist/winansi.d.ts +1 -1
- package/dist/winansi.js +1 -1
- package/dist/write.cjs +464 -21
- package/dist/write.d.cts +4 -3
- package/dist/write.d.ts +4 -3
- package/dist/write.js +464 -20
- package/dist/xmp.cjs +46 -0
- package/dist/xmp.d.cts +14 -0
- package/dist/xmp.d.ts +14 -0
- package/dist/xmp.js +45 -0
- package/dist/xref.cjs +2 -2
- package/dist/xref.d.cts +3 -3
- package/dist/xref.d.ts +3 -3
- package/dist/xref.js +2 -2
- package/package.json +46 -31
- package/dist/image/png-encode.cjs +0 -64
- package/dist/image/png-encode.d.cts +0 -8
- package/dist/image/png-encode.d.ts +0 -8
- package/dist/image/png-encode.js +0 -63
package/dist/layout.d.cts
CHANGED
|
@@ -26,6 +26,10 @@ declare const LayoutTextSchema: z.ZodObject<{
|
|
|
26
26
|
widthPt: z.ZodOptional<z.ZodNumber>;
|
|
27
27
|
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
28
28
|
underline: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
30
|
+
actualText: z.ZodOptional<z.ZodString>;
|
|
31
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
32
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
29
33
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
30
34
|
}, z.core.$strip>;
|
|
31
35
|
type LayoutText = z.infer<typeof LayoutTextSchema>;
|
|
@@ -37,6 +41,8 @@ declare const LayoutImageSchema: z.ZodObject<{
|
|
|
37
41
|
widthPt: z.ZodNumber;
|
|
38
42
|
heightPt: z.ZodNumber;
|
|
39
43
|
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
45
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
40
46
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
41
47
|
}, z.core.$strip>;
|
|
42
48
|
type LayoutImage = z.infer<typeof LayoutImageSchema>;
|
|
@@ -59,6 +65,8 @@ declare const LayoutRectSchema: z.ZodObject<{
|
|
|
59
65
|
}, z.core.$strip>;
|
|
60
66
|
widthPt: z.ZodNumber;
|
|
61
67
|
}, z.core.$strip>>;
|
|
68
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
69
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
62
70
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
63
71
|
}, z.core.$strip>;
|
|
64
72
|
type LayoutRect = z.infer<typeof LayoutRectSchema>;
|
|
@@ -80,6 +88,8 @@ declare const LayoutLineSchema: z.ZodObject<{
|
|
|
80
88
|
dotted: "dotted";
|
|
81
89
|
double: "double";
|
|
82
90
|
}>>;
|
|
91
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
92
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
83
93
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
84
94
|
}, z.core.$strip>;
|
|
85
95
|
type LayoutLine = z.infer<typeof LayoutLineSchema>;
|
|
@@ -102,6 +112,8 @@ declare const LayoutEllipseSchema: z.ZodObject<{
|
|
|
102
112
|
}, z.core.$strip>;
|
|
103
113
|
widthPt: z.ZodNumber;
|
|
104
114
|
}, z.core.$strip>>;
|
|
115
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
116
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
105
117
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
106
118
|
}, z.core.$strip>;
|
|
107
119
|
type LayoutEllipse = z.infer<typeof LayoutEllipseSchema>;
|
|
@@ -181,6 +193,8 @@ declare const LayoutPathSchema: z.ZodObject<{
|
|
|
181
193
|
dotted: "dotted";
|
|
182
194
|
double: "double";
|
|
183
195
|
}>>;
|
|
196
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
197
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
184
198
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
185
199
|
}, z.core.$strip>;
|
|
186
200
|
type LayoutPath = z.infer<typeof LayoutPathSchema>;
|
|
@@ -191,9 +205,20 @@ declare const LayoutLinkSchema: z.ZodObject<{
|
|
|
191
205
|
yPt: z.ZodNumber;
|
|
192
206
|
widthPt: z.ZodNumber;
|
|
193
207
|
heightPt: z.ZodNumber;
|
|
208
|
+
title: z.ZodOptional<z.ZodString>;
|
|
194
209
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
195
210
|
}, z.core.$strip>;
|
|
196
211
|
type LayoutLink = z.infer<typeof LayoutLinkSchema>;
|
|
212
|
+
declare const LayoutInternalLinkSchema: z.ZodObject<{
|
|
213
|
+
kind: z.ZodLiteral<"internalLink">;
|
|
214
|
+
destination: z.ZodString;
|
|
215
|
+
xPt: z.ZodNumber;
|
|
216
|
+
yPt: z.ZodNumber;
|
|
217
|
+
widthPt: z.ZodNumber;
|
|
218
|
+
heightPt: z.ZodNumber;
|
|
219
|
+
title: z.ZodOptional<z.ZodString>;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
type LayoutInternalLink = z.infer<typeof LayoutInternalLinkSchema>;
|
|
197
222
|
declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
198
223
|
kind: z.ZodLiteral<"text">;
|
|
199
224
|
text: z.ZodString;
|
|
@@ -219,6 +244,10 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
219
244
|
widthPt: z.ZodOptional<z.ZodNumber>;
|
|
220
245
|
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
221
246
|
underline: z.ZodOptional<z.ZodBoolean>;
|
|
247
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
248
|
+
actualText: z.ZodOptional<z.ZodString>;
|
|
249
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
250
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
222
251
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
223
252
|
}, z.core.$strip>, z.ZodObject<{
|
|
224
253
|
kind: z.ZodLiteral<"image">;
|
|
@@ -228,6 +257,8 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
228
257
|
widthPt: z.ZodNumber;
|
|
229
258
|
heightPt: z.ZodNumber;
|
|
230
259
|
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
260
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
261
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
231
262
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
232
263
|
}, z.core.$strip>, z.ZodObject<{
|
|
233
264
|
kind: z.ZodLiteral<"rect">;
|
|
@@ -248,6 +279,8 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
248
279
|
}, z.core.$strip>;
|
|
249
280
|
widthPt: z.ZodNumber;
|
|
250
281
|
}, z.core.$strip>>;
|
|
282
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
283
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
251
284
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
252
285
|
}, z.core.$strip>, z.ZodObject<{
|
|
253
286
|
kind: z.ZodLiteral<"line">;
|
|
@@ -267,6 +300,8 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
267
300
|
dotted: "dotted";
|
|
268
301
|
double: "double";
|
|
269
302
|
}>>;
|
|
303
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
304
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
270
305
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
271
306
|
}, z.core.$strip>, z.ZodObject<{
|
|
272
307
|
kind: z.ZodLiteral<"ellipse">;
|
|
@@ -287,6 +322,8 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
287
322
|
}, z.core.$strip>;
|
|
288
323
|
widthPt: z.ZodNumber;
|
|
289
324
|
}, z.core.$strip>>;
|
|
325
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
326
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
290
327
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
291
328
|
}, z.core.$strip>, z.ZodObject<{
|
|
292
329
|
kind: z.ZodLiteral<"path">;
|
|
@@ -331,6 +368,8 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
331
368
|
dotted: "dotted";
|
|
332
369
|
double: "double";
|
|
333
370
|
}>>;
|
|
371
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
372
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
334
373
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
335
374
|
}, z.core.$strip>, z.ZodObject<{
|
|
336
375
|
kind: z.ZodLiteral<"link">;
|
|
@@ -339,9 +378,76 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
339
378
|
yPt: z.ZodNumber;
|
|
340
379
|
widthPt: z.ZodNumber;
|
|
341
380
|
heightPt: z.ZodNumber;
|
|
381
|
+
title: z.ZodOptional<z.ZodString>;
|
|
342
382
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
383
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
384
|
+
kind: z.ZodLiteral<"internalLink">;
|
|
385
|
+
destination: z.ZodString;
|
|
386
|
+
xPt: z.ZodNumber;
|
|
387
|
+
yPt: z.ZodNumber;
|
|
388
|
+
widthPt: z.ZodNumber;
|
|
389
|
+
heightPt: z.ZodNumber;
|
|
390
|
+
title: z.ZodOptional<z.ZodString>;
|
|
343
391
|
}, z.core.$strip>], "kind">;
|
|
344
392
|
type LayoutItem = z.infer<typeof LayoutItemSchema>;
|
|
393
|
+
declare const LayoutAnnotationQuadSchema: z.ZodTuple<[z.ZodObject<{
|
|
394
|
+
xPt: z.ZodNumber;
|
|
395
|
+
yPt: z.ZodNumber;
|
|
396
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
397
|
+
xPt: z.ZodNumber;
|
|
398
|
+
yPt: z.ZodNumber;
|
|
399
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
400
|
+
xPt: z.ZodNumber;
|
|
401
|
+
yPt: z.ZodNumber;
|
|
402
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
403
|
+
xPt: z.ZodNumber;
|
|
404
|
+
yPt: z.ZodNumber;
|
|
405
|
+
}, z.core.$strip>], null>;
|
|
406
|
+
type LayoutAnnotationQuad = z.infer<typeof LayoutAnnotationQuadSchema>;
|
|
407
|
+
declare const LayoutAnnotationSchema: z.ZodObject<{
|
|
408
|
+
subtype: z.ZodString;
|
|
409
|
+
xPt: z.ZodNumber;
|
|
410
|
+
yPt: z.ZodNumber;
|
|
411
|
+
widthPt: z.ZodNumber;
|
|
412
|
+
heightPt: z.ZodNumber;
|
|
413
|
+
contents: z.ZodOptional<z.ZodString>;
|
|
414
|
+
author: z.ZodOptional<z.ZodString>;
|
|
415
|
+
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
416
|
+
quads: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodObject<{
|
|
417
|
+
xPt: z.ZodNumber;
|
|
418
|
+
yPt: z.ZodNumber;
|
|
419
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
420
|
+
xPt: z.ZodNumber;
|
|
421
|
+
yPt: z.ZodNumber;
|
|
422
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
423
|
+
xPt: z.ZodNumber;
|
|
424
|
+
yPt: z.ZodNumber;
|
|
425
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
426
|
+
xPt: z.ZodNumber;
|
|
427
|
+
yPt: z.ZodNumber;
|
|
428
|
+
}, z.core.$strip>], null>>>;
|
|
429
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
430
|
+
format: z.ZodEnum<{
|
|
431
|
+
docx: "docx";
|
|
432
|
+
pptx: "pptx";
|
|
433
|
+
xlsx: "xlsx";
|
|
434
|
+
odt: "odt";
|
|
435
|
+
ods: "ods";
|
|
436
|
+
odp: "odp";
|
|
437
|
+
odg: "odg";
|
|
438
|
+
odm: "odm";
|
|
439
|
+
odb: "odb";
|
|
440
|
+
odf: "odf";
|
|
441
|
+
markdown: "markdown";
|
|
442
|
+
pdf: "pdf";
|
|
443
|
+
epub: "epub";
|
|
444
|
+
rtf: "rtf";
|
|
445
|
+
wpd: "wpd";
|
|
446
|
+
}>;
|
|
447
|
+
xml: z.ZodString;
|
|
448
|
+
}, z.core.$strict>>;
|
|
449
|
+
}, z.core.$strip>;
|
|
450
|
+
type LayoutAnnotation = z.infer<typeof LayoutAnnotationSchema>;
|
|
345
451
|
declare const LayoutPageSchema: z.ZodObject<{
|
|
346
452
|
widthPt: z.ZodNumber;
|
|
347
453
|
heightPt: z.ZodNumber;
|
|
@@ -370,6 +476,10 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
370
476
|
widthPt: z.ZodOptional<z.ZodNumber>;
|
|
371
477
|
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
372
478
|
underline: z.ZodOptional<z.ZodBoolean>;
|
|
479
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
480
|
+
actualText: z.ZodOptional<z.ZodString>;
|
|
481
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
482
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
373
483
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
374
484
|
}, z.core.$strip>, z.ZodObject<{
|
|
375
485
|
kind: z.ZodLiteral<"image">;
|
|
@@ -379,6 +489,8 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
379
489
|
widthPt: z.ZodNumber;
|
|
380
490
|
heightPt: z.ZodNumber;
|
|
381
491
|
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
492
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
493
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
382
494
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
383
495
|
}, z.core.$strip>, z.ZodObject<{
|
|
384
496
|
kind: z.ZodLiteral<"rect">;
|
|
@@ -399,6 +511,8 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
399
511
|
}, z.core.$strip>;
|
|
400
512
|
widthPt: z.ZodNumber;
|
|
401
513
|
}, z.core.$strip>>;
|
|
514
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
515
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
402
516
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
403
517
|
}, z.core.$strip>, z.ZodObject<{
|
|
404
518
|
kind: z.ZodLiteral<"line">;
|
|
@@ -418,6 +532,8 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
418
532
|
dotted: "dotted";
|
|
419
533
|
double: "double";
|
|
420
534
|
}>>;
|
|
535
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
536
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
421
537
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
422
538
|
}, z.core.$strip>, z.ZodObject<{
|
|
423
539
|
kind: z.ZodLiteral<"ellipse">;
|
|
@@ -438,6 +554,8 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
438
554
|
}, z.core.$strip>;
|
|
439
555
|
widthPt: z.ZodNumber;
|
|
440
556
|
}, z.core.$strip>>;
|
|
557
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
558
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
441
559
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
442
560
|
}, z.core.$strip>, z.ZodObject<{
|
|
443
561
|
kind: z.ZodLiteral<"path">;
|
|
@@ -482,6 +600,8 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
482
600
|
dotted: "dotted";
|
|
483
601
|
double: "double";
|
|
484
602
|
}>>;
|
|
603
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
604
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
485
605
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
486
606
|
}, z.core.$strip>, z.ZodObject<{
|
|
487
607
|
kind: z.ZodLiteral<"link">;
|
|
@@ -490,8 +610,60 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
490
610
|
yPt: z.ZodNumber;
|
|
491
611
|
widthPt: z.ZodNumber;
|
|
492
612
|
heightPt: z.ZodNumber;
|
|
613
|
+
title: z.ZodOptional<z.ZodString>;
|
|
493
614
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
615
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
616
|
+
kind: z.ZodLiteral<"internalLink">;
|
|
617
|
+
destination: z.ZodString;
|
|
618
|
+
xPt: z.ZodNumber;
|
|
619
|
+
yPt: z.ZodNumber;
|
|
620
|
+
widthPt: z.ZodNumber;
|
|
621
|
+
heightPt: z.ZodNumber;
|
|
622
|
+
title: z.ZodOptional<z.ZodString>;
|
|
494
623
|
}, z.core.$strip>], "kind">>;
|
|
624
|
+
annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
625
|
+
subtype: z.ZodString;
|
|
626
|
+
xPt: z.ZodNumber;
|
|
627
|
+
yPt: z.ZodNumber;
|
|
628
|
+
widthPt: z.ZodNumber;
|
|
629
|
+
heightPt: z.ZodNumber;
|
|
630
|
+
contents: z.ZodOptional<z.ZodString>;
|
|
631
|
+
author: z.ZodOptional<z.ZodString>;
|
|
632
|
+
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
633
|
+
quads: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodObject<{
|
|
634
|
+
xPt: z.ZodNumber;
|
|
635
|
+
yPt: z.ZodNumber;
|
|
636
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
637
|
+
xPt: z.ZodNumber;
|
|
638
|
+
yPt: z.ZodNumber;
|
|
639
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
640
|
+
xPt: z.ZodNumber;
|
|
641
|
+
yPt: z.ZodNumber;
|
|
642
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
643
|
+
xPt: z.ZodNumber;
|
|
644
|
+
yPt: z.ZodNumber;
|
|
645
|
+
}, z.core.$strip>], null>>>;
|
|
646
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
647
|
+
format: z.ZodEnum<{
|
|
648
|
+
docx: "docx";
|
|
649
|
+
pptx: "pptx";
|
|
650
|
+
xlsx: "xlsx";
|
|
651
|
+
odt: "odt";
|
|
652
|
+
ods: "ods";
|
|
653
|
+
odp: "odp";
|
|
654
|
+
odg: "odg";
|
|
655
|
+
odm: "odm";
|
|
656
|
+
odb: "odb";
|
|
657
|
+
odf: "odf";
|
|
658
|
+
markdown: "markdown";
|
|
659
|
+
pdf: "pdf";
|
|
660
|
+
epub: "epub";
|
|
661
|
+
rtf: "rtf";
|
|
662
|
+
wpd: "wpd";
|
|
663
|
+
}>;
|
|
664
|
+
xml: z.ZodString;
|
|
665
|
+
}, z.core.$strict>>;
|
|
666
|
+
}, z.core.$strip>>>;
|
|
495
667
|
notes: z.ZodOptional<z.ZodString>;
|
|
496
668
|
}, z.core.$strip>;
|
|
497
669
|
type LayoutPage = z.infer<typeof LayoutPageSchema>;
|
|
@@ -505,6 +677,94 @@ declare const LayoutImageAssetSchema: z.ZodObject<{
|
|
|
505
677
|
heightPx: z.ZodNumber;
|
|
506
678
|
}, z.core.$strip>;
|
|
507
679
|
type LayoutImageAsset = z.infer<typeof LayoutImageAssetSchema>;
|
|
680
|
+
declare const LayoutDestinationTargetSchema: z.ZodObject<{
|
|
681
|
+
kind: z.ZodEnum<{
|
|
682
|
+
xyz: "xyz";
|
|
683
|
+
fit: "fit";
|
|
684
|
+
fitH: "fitH";
|
|
685
|
+
fitV: "fitV";
|
|
686
|
+
fitR: "fitR";
|
|
687
|
+
fitB: "fitB";
|
|
688
|
+
fitBH: "fitBH";
|
|
689
|
+
fitBV: "fitBV";
|
|
690
|
+
}>;
|
|
691
|
+
leftPt: z.ZodOptional<z.ZodNumber>;
|
|
692
|
+
topPt: z.ZodOptional<z.ZodNumber>;
|
|
693
|
+
bottomPt: z.ZodOptional<z.ZodNumber>;
|
|
694
|
+
rightPt: z.ZodOptional<z.ZodNumber>;
|
|
695
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
696
|
+
}, z.core.$strip>;
|
|
697
|
+
type LayoutDestinationTarget = z.infer<typeof LayoutDestinationTargetSchema>;
|
|
698
|
+
declare const LayoutDestinationSchema: z.ZodObject<{
|
|
699
|
+
name: z.ZodString;
|
|
700
|
+
pageIndex: z.ZodNumber;
|
|
701
|
+
target: z.ZodObject<{
|
|
702
|
+
kind: z.ZodEnum<{
|
|
703
|
+
xyz: "xyz";
|
|
704
|
+
fit: "fit";
|
|
705
|
+
fitH: "fitH";
|
|
706
|
+
fitV: "fitV";
|
|
707
|
+
fitR: "fitR";
|
|
708
|
+
fitB: "fitB";
|
|
709
|
+
fitBH: "fitBH";
|
|
710
|
+
fitBV: "fitBV";
|
|
711
|
+
}>;
|
|
712
|
+
leftPt: z.ZodOptional<z.ZodNumber>;
|
|
713
|
+
topPt: z.ZodOptional<z.ZodNumber>;
|
|
714
|
+
bottomPt: z.ZodOptional<z.ZodNumber>;
|
|
715
|
+
rightPt: z.ZodOptional<z.ZodNumber>;
|
|
716
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
717
|
+
}, z.core.$strip>;
|
|
718
|
+
}, z.core.$strip>;
|
|
719
|
+
type LayoutDestination = z.infer<typeof LayoutDestinationSchema>;
|
|
720
|
+
declare const LayoutOutlineItemSchema: z.ZodType<LayoutOutlineItem, LayoutOutlineItem>;
|
|
721
|
+
interface LayoutOutlineItem {
|
|
722
|
+
readonly title: string;
|
|
723
|
+
readonly destination?: string;
|
|
724
|
+
readonly children: readonly LayoutOutlineItem[];
|
|
725
|
+
}
|
|
726
|
+
declare const LayoutAttachmentSchema: z.ZodObject<{
|
|
727
|
+
name: z.ZodString;
|
|
728
|
+
description: z.ZodOptional<z.ZodString>;
|
|
729
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
730
|
+
base64: z.ZodString;
|
|
731
|
+
}, z.core.$strip>;
|
|
732
|
+
type LayoutAttachment = z.infer<typeof LayoutAttachmentSchema>;
|
|
733
|
+
declare const LayoutFormWidgetSchema: z.ZodObject<{
|
|
734
|
+
pageIndex: z.ZodNumber;
|
|
735
|
+
xPt: z.ZodNumber;
|
|
736
|
+
yPt: z.ZodNumber;
|
|
737
|
+
widthPt: z.ZodNumber;
|
|
738
|
+
heightPt: z.ZodNumber;
|
|
739
|
+
}, z.core.$strip>;
|
|
740
|
+
type LayoutFormWidget = z.infer<typeof LayoutFormWidgetSchema>;
|
|
741
|
+
interface LayoutFormField {
|
|
742
|
+
readonly name: string;
|
|
743
|
+
readonly fieldType: "text" | "checkbox" | "radio" | "button" | "listbox" | "combobox" | "signature" | "group";
|
|
744
|
+
readonly value?: string;
|
|
745
|
+
readonly checked?: boolean;
|
|
746
|
+
readonly options?: readonly string[];
|
|
747
|
+
readonly alias?: string;
|
|
748
|
+
readonly readOnly?: boolean;
|
|
749
|
+
readonly widgets: readonly LayoutFormWidget[];
|
|
750
|
+
readonly children: readonly LayoutFormField[];
|
|
751
|
+
}
|
|
752
|
+
declare const LayoutFormFieldSchema: z.ZodType<LayoutFormField, LayoutFormField>;
|
|
753
|
+
declare const LayoutLayerSchema: z.ZodObject<{
|
|
754
|
+
name: z.ZodString;
|
|
755
|
+
visible: z.ZodBoolean;
|
|
756
|
+
}, z.core.$strip>;
|
|
757
|
+
type LayoutLayer = z.infer<typeof LayoutLayerSchema>;
|
|
758
|
+
declare const LayoutStructureElementSchema: z.ZodType<LayoutStructureElement, LayoutStructureElement>;
|
|
759
|
+
interface LayoutStructureElement {
|
|
760
|
+
readonly id: string;
|
|
761
|
+
readonly type: string;
|
|
762
|
+
readonly title?: string;
|
|
763
|
+
readonly language?: string;
|
|
764
|
+
readonly alt?: string;
|
|
765
|
+
readonly actualText?: string;
|
|
766
|
+
readonly children: readonly LayoutStructureElement[];
|
|
767
|
+
}
|
|
508
768
|
declare const LayoutDocumentSchema: z.ZodObject<{
|
|
509
769
|
formatVersion: z.ZodLiteral<1>;
|
|
510
770
|
metadata: z.ZodObject<{
|
|
@@ -516,6 +776,19 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
516
776
|
producer: z.ZodOptional<z.ZodString>;
|
|
517
777
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
518
778
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
779
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
780
|
+
language: z.ZodOptional<z.ZodString>;
|
|
781
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
782
|
+
ltr: "ltr";
|
|
783
|
+
rtl: "rtl";
|
|
784
|
+
}>>;
|
|
785
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
786
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
787
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
788
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
789
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
790
|
+
company: z.ZodOptional<z.ZodString>;
|
|
791
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
519
792
|
}, z.core.$strip>;
|
|
520
793
|
pages: z.ZodArray<z.ZodObject<{
|
|
521
794
|
widthPt: z.ZodNumber;
|
|
@@ -545,6 +818,10 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
545
818
|
widthPt: z.ZodOptional<z.ZodNumber>;
|
|
546
819
|
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
547
820
|
underline: z.ZodOptional<z.ZodBoolean>;
|
|
821
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
822
|
+
actualText: z.ZodOptional<z.ZodString>;
|
|
823
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
824
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
548
825
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
549
826
|
}, z.core.$strip>, z.ZodObject<{
|
|
550
827
|
kind: z.ZodLiteral<"image">;
|
|
@@ -554,6 +831,8 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
554
831
|
widthPt: z.ZodNumber;
|
|
555
832
|
heightPt: z.ZodNumber;
|
|
556
833
|
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
834
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
835
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
557
836
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
558
837
|
}, z.core.$strip>, z.ZodObject<{
|
|
559
838
|
kind: z.ZodLiteral<"rect">;
|
|
@@ -574,6 +853,8 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
574
853
|
}, z.core.$strip>;
|
|
575
854
|
widthPt: z.ZodNumber;
|
|
576
855
|
}, z.core.$strip>>;
|
|
856
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
857
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
577
858
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
578
859
|
}, z.core.$strip>, z.ZodObject<{
|
|
579
860
|
kind: z.ZodLiteral<"line">;
|
|
@@ -593,6 +874,8 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
593
874
|
dotted: "dotted";
|
|
594
875
|
double: "double";
|
|
595
876
|
}>>;
|
|
877
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
878
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
596
879
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
597
880
|
}, z.core.$strip>, z.ZodObject<{
|
|
598
881
|
kind: z.ZodLiteral<"ellipse">;
|
|
@@ -613,6 +896,8 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
613
896
|
}, z.core.$strip>;
|
|
614
897
|
widthPt: z.ZodNumber;
|
|
615
898
|
}, z.core.$strip>>;
|
|
899
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
900
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
616
901
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
617
902
|
}, z.core.$strip>, z.ZodObject<{
|
|
618
903
|
kind: z.ZodLiteral<"path">;
|
|
@@ -657,6 +942,8 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
657
942
|
dotted: "dotted";
|
|
658
943
|
double: "double";
|
|
659
944
|
}>>;
|
|
945
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
946
|
+
structure: z.ZodOptional<z.ZodString>;
|
|
660
947
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
661
948
|
}, z.core.$strip>, z.ZodObject<{
|
|
662
949
|
kind: z.ZodLiteral<"link">;
|
|
@@ -665,8 +952,60 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
665
952
|
yPt: z.ZodNumber;
|
|
666
953
|
widthPt: z.ZodNumber;
|
|
667
954
|
heightPt: z.ZodNumber;
|
|
955
|
+
title: z.ZodOptional<z.ZodString>;
|
|
668
956
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
957
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
958
|
+
kind: z.ZodLiteral<"internalLink">;
|
|
959
|
+
destination: z.ZodString;
|
|
960
|
+
xPt: z.ZodNumber;
|
|
961
|
+
yPt: z.ZodNumber;
|
|
962
|
+
widthPt: z.ZodNumber;
|
|
963
|
+
heightPt: z.ZodNumber;
|
|
964
|
+
title: z.ZodOptional<z.ZodString>;
|
|
669
965
|
}, z.core.$strip>], "kind">>;
|
|
966
|
+
annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
967
|
+
subtype: z.ZodString;
|
|
968
|
+
xPt: z.ZodNumber;
|
|
969
|
+
yPt: z.ZodNumber;
|
|
970
|
+
widthPt: z.ZodNumber;
|
|
971
|
+
heightPt: z.ZodNumber;
|
|
972
|
+
contents: z.ZodOptional<z.ZodString>;
|
|
973
|
+
author: z.ZodOptional<z.ZodString>;
|
|
974
|
+
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
975
|
+
quads: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodObject<{
|
|
976
|
+
xPt: z.ZodNumber;
|
|
977
|
+
yPt: z.ZodNumber;
|
|
978
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
979
|
+
xPt: z.ZodNumber;
|
|
980
|
+
yPt: z.ZodNumber;
|
|
981
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
982
|
+
xPt: z.ZodNumber;
|
|
983
|
+
yPt: z.ZodNumber;
|
|
984
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
985
|
+
xPt: z.ZodNumber;
|
|
986
|
+
yPt: z.ZodNumber;
|
|
987
|
+
}, z.core.$strip>], null>>>;
|
|
988
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
989
|
+
format: z.ZodEnum<{
|
|
990
|
+
docx: "docx";
|
|
991
|
+
pptx: "pptx";
|
|
992
|
+
xlsx: "xlsx";
|
|
993
|
+
odt: "odt";
|
|
994
|
+
ods: "ods";
|
|
995
|
+
odp: "odp";
|
|
996
|
+
odg: "odg";
|
|
997
|
+
odm: "odm";
|
|
998
|
+
odb: "odb";
|
|
999
|
+
odf: "odf";
|
|
1000
|
+
markdown: "markdown";
|
|
1001
|
+
pdf: "pdf";
|
|
1002
|
+
epub: "epub";
|
|
1003
|
+
rtf: "rtf";
|
|
1004
|
+
wpd: "wpd";
|
|
1005
|
+
}>;
|
|
1006
|
+
xml: z.ZodString;
|
|
1007
|
+
}, z.core.$strict>>;
|
|
1008
|
+
}, z.core.$strip>>>;
|
|
670
1009
|
notes: z.ZodOptional<z.ZodString>;
|
|
671
1010
|
}, z.core.$strip>>;
|
|
672
1011
|
images: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -678,7 +1017,61 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
678
1017
|
widthPx: z.ZodNumber;
|
|
679
1018
|
heightPx: z.ZodNumber;
|
|
680
1019
|
}, z.core.$strip>>;
|
|
1020
|
+
destinations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1021
|
+
name: z.ZodString;
|
|
1022
|
+
pageIndex: z.ZodNumber;
|
|
1023
|
+
target: z.ZodObject<{
|
|
1024
|
+
kind: z.ZodEnum<{
|
|
1025
|
+
xyz: "xyz";
|
|
1026
|
+
fit: "fit";
|
|
1027
|
+
fitH: "fitH";
|
|
1028
|
+
fitV: "fitV";
|
|
1029
|
+
fitR: "fitR";
|
|
1030
|
+
fitB: "fitB";
|
|
1031
|
+
fitBH: "fitBH";
|
|
1032
|
+
fitBV: "fitBV";
|
|
1033
|
+
}>;
|
|
1034
|
+
leftPt: z.ZodOptional<z.ZodNumber>;
|
|
1035
|
+
topPt: z.ZodOptional<z.ZodNumber>;
|
|
1036
|
+
bottomPt: z.ZodOptional<z.ZodNumber>;
|
|
1037
|
+
rightPt: z.ZodOptional<z.ZodNumber>;
|
|
1038
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1039
|
+
}, z.core.$strip>;
|
|
1040
|
+
}, z.core.$strip>>>;
|
|
1041
|
+
outline: z.ZodOptional<z.ZodArray<z.ZodType<LayoutOutlineItem, LayoutOutlineItem, z.core.$ZodTypeInternals<LayoutOutlineItem, LayoutOutlineItem>>>>;
|
|
1042
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1043
|
+
name: z.ZodString;
|
|
1044
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1045
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1046
|
+
base64: z.ZodString;
|
|
1047
|
+
}, z.core.$strip>>>;
|
|
1048
|
+
layers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1049
|
+
name: z.ZodString;
|
|
1050
|
+
visible: z.ZodBoolean;
|
|
1051
|
+
}, z.core.$strip>>>;
|
|
1052
|
+
structure: z.ZodOptional<z.ZodArray<z.ZodType<LayoutStructureElement, LayoutStructureElement, z.core.$ZodTypeInternals<LayoutStructureElement, LayoutStructureElement>>>>;
|
|
1053
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<LayoutFormField, LayoutFormField, z.core.$ZodTypeInternals<LayoutFormField, LayoutFormField>>>>;
|
|
1054
|
+
source: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1055
|
+
format: z.ZodEnum<{
|
|
1056
|
+
docx: "docx";
|
|
1057
|
+
pptx: "pptx";
|
|
1058
|
+
xlsx: "xlsx";
|
|
1059
|
+
odt: "odt";
|
|
1060
|
+
ods: "ods";
|
|
1061
|
+
odp: "odp";
|
|
1062
|
+
odg: "odg";
|
|
1063
|
+
odm: "odm";
|
|
1064
|
+
odb: "odb";
|
|
1065
|
+
odf: "odf";
|
|
1066
|
+
markdown: "markdown";
|
|
1067
|
+
pdf: "pdf";
|
|
1068
|
+
epub: "epub";
|
|
1069
|
+
rtf: "rtf";
|
|
1070
|
+
wpd: "wpd";
|
|
1071
|
+
}>;
|
|
1072
|
+
xml: z.ZodString;
|
|
1073
|
+
}, z.core.$strict>>>;
|
|
681
1074
|
}, z.core.$strip>;
|
|
682
1075
|
type LayoutDocument = z.infer<typeof LayoutDocumentSchema>;
|
|
683
1076
|
//#endregion
|
|
684
|
-
export { LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentSchema, LayoutEllipse, LayoutEllipseSchema, LayoutImage, LayoutImageAsset, LayoutImageAssetSchema, LayoutImageSchema, LayoutItem, LayoutItemSchema, LayoutLine, LayoutLineSchema, LayoutLink, LayoutLinkSchema, LayoutPage, LayoutPageSchema, LayoutPath, LayoutPathSchema, LayoutPathSegment, LayoutPathSegmentSchema, LayoutRect, LayoutRectSchema, LayoutSubpath, LayoutSubpathSchema, LayoutText, LayoutTextSchema };
|
|
1077
|
+
export { LAYOUT_FORMAT_VERSION, LayoutAnnotation, LayoutAnnotationQuad, LayoutAnnotationQuadSchema, LayoutAnnotationSchema, LayoutAttachment, LayoutAttachmentSchema, LayoutDestination, LayoutDestinationSchema, LayoutDestinationTarget, LayoutDestinationTargetSchema, LayoutDocument, LayoutDocumentSchema, LayoutEllipse, LayoutEllipseSchema, LayoutFormField, LayoutFormFieldSchema, LayoutFormWidget, LayoutFormWidgetSchema, LayoutImage, LayoutImageAsset, LayoutImageAssetSchema, LayoutImageSchema, LayoutInternalLink, LayoutInternalLinkSchema, LayoutItem, LayoutItemSchema, LayoutLayer, LayoutLayerSchema, LayoutLine, LayoutLineSchema, LayoutLink, LayoutLinkSchema, LayoutOutlineItem, LayoutOutlineItemSchema, LayoutPage, LayoutPageSchema, LayoutPath, LayoutPathSchema, LayoutPathSegment, LayoutPathSegmentSchema, LayoutRect, LayoutRectSchema, LayoutStructureElement, LayoutStructureElementSchema, LayoutSubpath, LayoutSubpathSchema, LayoutText, LayoutTextSchema };
|