pdf-codec 3.1.4 → 3.2.0
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 +2 -2
- 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/bytes/flate.cjs +1 -1
- package/dist/bytes/flate.js +1 -1
- package/dist/codec.d.cts +109 -0
- package/dist/codec.d.ts +109 -0
- package/dist/content-read.cjs +1 -1
- package/dist/content-read.js +1 -1
- package/dist/content-write.cjs +2 -2
- package/dist/content-write.js +2 -2
- package/dist/document.cjs +12 -3
- package/dist/document.d.cts +2 -0
- package/dist/document.d.ts +2 -0
- package/dist/document.js +12 -3
- package/dist/embedded-font-write.cjs +1 -1
- package/dist/embedded-font-write.js +1 -1
- package/dist/encrypt.cjs +1 -1
- package/dist/encrypt.js +1 -1
- package/dist/filters.cjs +1 -1
- package/dist/filters.js +1 -1
- package/dist/font-read.cjs +1 -1
- package/dist/font-read.js +1 -1
- package/dist/font-registry.cjs +1 -1
- package/dist/font-registry.js +1 -1
- 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/image/png-decode.cjs +1 -1
- package/dist/image/png-decode.js +1 -1
- package/dist/image/png-encode.cjs +1 -1
- package/dist/image/png-encode.js +1 -1
- package/dist/index.cjs +12 -2
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/interpret.cjs +70 -10
- package/dist/interpret.d.cts +9 -1
- package/dist/interpret.d.ts +9 -1
- package/dist/interpret.js +70 -10
- package/dist/layout.cjs +132 -2
- package/dist/layout.d.cts +335 -1
- package/dist/layout.d.ts +335 -1
- package/dist/layout.js +124 -4
- package/dist/math-content-write.cjs +1 -1
- package/dist/math-content-write.js +1 -1
- package/dist/math-font.cjs +1 -1
- package/dist/math-font.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/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 +1 -1
- package/dist/parse.d.ts +1 -1
- 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/read.cjs +128 -58
- package/dist/read.d.cts +2 -4
- package/dist/read.d.ts +2 -4
- package/dist/read.js +125 -53
- 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/write.cjs +51 -5
- package/dist/write.js +51 -5
- 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.js +2 -2
- package/package.json +2 -2
package/dist/layout.d.cts
CHANGED
|
@@ -26,6 +26,9 @@ 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>;
|
|
29
32
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
30
33
|
}, z.core.$strip>;
|
|
31
34
|
type LayoutText = z.infer<typeof LayoutTextSchema>;
|
|
@@ -37,6 +40,7 @@ declare const LayoutImageSchema: z.ZodObject<{
|
|
|
37
40
|
widthPt: z.ZodNumber;
|
|
38
41
|
heightPt: z.ZodNumber;
|
|
39
42
|
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
40
44
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
41
45
|
}, z.core.$strip>;
|
|
42
46
|
type LayoutImage = z.infer<typeof LayoutImageSchema>;
|
|
@@ -59,6 +63,7 @@ declare const LayoutRectSchema: z.ZodObject<{
|
|
|
59
63
|
}, z.core.$strip>;
|
|
60
64
|
widthPt: z.ZodNumber;
|
|
61
65
|
}, z.core.$strip>>;
|
|
66
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
62
67
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
63
68
|
}, z.core.$strip>;
|
|
64
69
|
type LayoutRect = z.infer<typeof LayoutRectSchema>;
|
|
@@ -80,6 +85,7 @@ declare const LayoutLineSchema: z.ZodObject<{
|
|
|
80
85
|
dotted: "dotted";
|
|
81
86
|
double: "double";
|
|
82
87
|
}>>;
|
|
88
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
83
89
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
84
90
|
}, z.core.$strip>;
|
|
85
91
|
type LayoutLine = z.infer<typeof LayoutLineSchema>;
|
|
@@ -102,6 +108,7 @@ declare const LayoutEllipseSchema: z.ZodObject<{
|
|
|
102
108
|
}, z.core.$strip>;
|
|
103
109
|
widthPt: z.ZodNumber;
|
|
104
110
|
}, z.core.$strip>>;
|
|
111
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
105
112
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
106
113
|
}, z.core.$strip>;
|
|
107
114
|
type LayoutEllipse = z.infer<typeof LayoutEllipseSchema>;
|
|
@@ -181,6 +188,7 @@ declare const LayoutPathSchema: z.ZodObject<{
|
|
|
181
188
|
dotted: "dotted";
|
|
182
189
|
double: "double";
|
|
183
190
|
}>>;
|
|
191
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
184
192
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
185
193
|
}, z.core.$strip>;
|
|
186
194
|
type LayoutPath = z.infer<typeof LayoutPathSchema>;
|
|
@@ -191,9 +199,20 @@ declare const LayoutLinkSchema: z.ZodObject<{
|
|
|
191
199
|
yPt: z.ZodNumber;
|
|
192
200
|
widthPt: z.ZodNumber;
|
|
193
201
|
heightPt: z.ZodNumber;
|
|
202
|
+
title: z.ZodOptional<z.ZodString>;
|
|
194
203
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
195
204
|
}, z.core.$strip>;
|
|
196
205
|
type LayoutLink = z.infer<typeof LayoutLinkSchema>;
|
|
206
|
+
declare const LayoutInternalLinkSchema: z.ZodObject<{
|
|
207
|
+
kind: z.ZodLiteral<"internalLink">;
|
|
208
|
+
destination: z.ZodString;
|
|
209
|
+
xPt: z.ZodNumber;
|
|
210
|
+
yPt: z.ZodNumber;
|
|
211
|
+
widthPt: z.ZodNumber;
|
|
212
|
+
heightPt: z.ZodNumber;
|
|
213
|
+
title: z.ZodOptional<z.ZodString>;
|
|
214
|
+
}, z.core.$strip>;
|
|
215
|
+
type LayoutInternalLink = z.infer<typeof LayoutInternalLinkSchema>;
|
|
197
216
|
declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
198
217
|
kind: z.ZodLiteral<"text">;
|
|
199
218
|
text: z.ZodString;
|
|
@@ -219,6 +238,9 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
219
238
|
widthPt: z.ZodOptional<z.ZodNumber>;
|
|
220
239
|
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
221
240
|
underline: z.ZodOptional<z.ZodBoolean>;
|
|
241
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
242
|
+
actualText: z.ZodOptional<z.ZodString>;
|
|
243
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
222
244
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
223
245
|
}, z.core.$strip>, z.ZodObject<{
|
|
224
246
|
kind: z.ZodLiteral<"image">;
|
|
@@ -228,6 +250,7 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
228
250
|
widthPt: z.ZodNumber;
|
|
229
251
|
heightPt: z.ZodNumber;
|
|
230
252
|
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
253
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
231
254
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
232
255
|
}, z.core.$strip>, z.ZodObject<{
|
|
233
256
|
kind: z.ZodLiteral<"rect">;
|
|
@@ -248,6 +271,7 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
248
271
|
}, z.core.$strip>;
|
|
249
272
|
widthPt: z.ZodNumber;
|
|
250
273
|
}, z.core.$strip>>;
|
|
274
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
251
275
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
252
276
|
}, z.core.$strip>, z.ZodObject<{
|
|
253
277
|
kind: z.ZodLiteral<"line">;
|
|
@@ -267,6 +291,7 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
267
291
|
dotted: "dotted";
|
|
268
292
|
double: "double";
|
|
269
293
|
}>>;
|
|
294
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
270
295
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
271
296
|
}, z.core.$strip>, z.ZodObject<{
|
|
272
297
|
kind: z.ZodLiteral<"ellipse">;
|
|
@@ -287,6 +312,7 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
287
312
|
}, z.core.$strip>;
|
|
288
313
|
widthPt: z.ZodNumber;
|
|
289
314
|
}, z.core.$strip>>;
|
|
315
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
290
316
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
291
317
|
}, z.core.$strip>, z.ZodObject<{
|
|
292
318
|
kind: z.ZodLiteral<"path">;
|
|
@@ -331,6 +357,7 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
331
357
|
dotted: "dotted";
|
|
332
358
|
double: "double";
|
|
333
359
|
}>>;
|
|
360
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
334
361
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
335
362
|
}, z.core.$strip>, z.ZodObject<{
|
|
336
363
|
kind: z.ZodLiteral<"link">;
|
|
@@ -339,9 +366,73 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
339
366
|
yPt: z.ZodNumber;
|
|
340
367
|
widthPt: z.ZodNumber;
|
|
341
368
|
heightPt: z.ZodNumber;
|
|
369
|
+
title: z.ZodOptional<z.ZodString>;
|
|
342
370
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
371
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
372
|
+
kind: z.ZodLiteral<"internalLink">;
|
|
373
|
+
destination: z.ZodString;
|
|
374
|
+
xPt: z.ZodNumber;
|
|
375
|
+
yPt: z.ZodNumber;
|
|
376
|
+
widthPt: z.ZodNumber;
|
|
377
|
+
heightPt: z.ZodNumber;
|
|
378
|
+
title: z.ZodOptional<z.ZodString>;
|
|
343
379
|
}, z.core.$strip>], "kind">;
|
|
344
380
|
type LayoutItem = z.infer<typeof LayoutItemSchema>;
|
|
381
|
+
declare const LayoutAnnotationQuadSchema: z.ZodTuple<[z.ZodObject<{
|
|
382
|
+
xPt: z.ZodNumber;
|
|
383
|
+
yPt: z.ZodNumber;
|
|
384
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
385
|
+
xPt: z.ZodNumber;
|
|
386
|
+
yPt: z.ZodNumber;
|
|
387
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
388
|
+
xPt: z.ZodNumber;
|
|
389
|
+
yPt: z.ZodNumber;
|
|
390
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
391
|
+
xPt: z.ZodNumber;
|
|
392
|
+
yPt: z.ZodNumber;
|
|
393
|
+
}, z.core.$strip>], null>;
|
|
394
|
+
type LayoutAnnotationQuad = z.infer<typeof LayoutAnnotationQuadSchema>;
|
|
395
|
+
declare const LayoutAnnotationSchema: z.ZodObject<{
|
|
396
|
+
subtype: z.ZodString;
|
|
397
|
+
xPt: z.ZodNumber;
|
|
398
|
+
yPt: z.ZodNumber;
|
|
399
|
+
widthPt: z.ZodNumber;
|
|
400
|
+
heightPt: z.ZodNumber;
|
|
401
|
+
contents: z.ZodOptional<z.ZodString>;
|
|
402
|
+
author: z.ZodOptional<z.ZodString>;
|
|
403
|
+
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
404
|
+
quads: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodObject<{
|
|
405
|
+
xPt: z.ZodNumber;
|
|
406
|
+
yPt: z.ZodNumber;
|
|
407
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
408
|
+
xPt: z.ZodNumber;
|
|
409
|
+
yPt: z.ZodNumber;
|
|
410
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
411
|
+
xPt: z.ZodNumber;
|
|
412
|
+
yPt: z.ZodNumber;
|
|
413
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
414
|
+
xPt: z.ZodNumber;
|
|
415
|
+
yPt: z.ZodNumber;
|
|
416
|
+
}, z.core.$strip>], null>>>;
|
|
417
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
418
|
+
format: z.ZodEnum<{
|
|
419
|
+
docx: "docx";
|
|
420
|
+
pptx: "pptx";
|
|
421
|
+
xlsx: "xlsx";
|
|
422
|
+
odt: "odt";
|
|
423
|
+
ods: "ods";
|
|
424
|
+
odp: "odp";
|
|
425
|
+
odg: "odg";
|
|
426
|
+
odm: "odm";
|
|
427
|
+
odb: "odb";
|
|
428
|
+
odf: "odf";
|
|
429
|
+
markdown: "markdown";
|
|
430
|
+
pdf: "pdf";
|
|
431
|
+
}>;
|
|
432
|
+
xml: z.ZodString;
|
|
433
|
+
}, z.core.$strict>>;
|
|
434
|
+
}, z.core.$strip>;
|
|
435
|
+
type LayoutAnnotation = z.infer<typeof LayoutAnnotationSchema>;
|
|
345
436
|
declare const LayoutPageSchema: z.ZodObject<{
|
|
346
437
|
widthPt: z.ZodNumber;
|
|
347
438
|
heightPt: z.ZodNumber;
|
|
@@ -370,6 +461,9 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
370
461
|
widthPt: z.ZodOptional<z.ZodNumber>;
|
|
371
462
|
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
372
463
|
underline: z.ZodOptional<z.ZodBoolean>;
|
|
464
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
465
|
+
actualText: z.ZodOptional<z.ZodString>;
|
|
466
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
373
467
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
374
468
|
}, z.core.$strip>, z.ZodObject<{
|
|
375
469
|
kind: z.ZodLiteral<"image">;
|
|
@@ -379,6 +473,7 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
379
473
|
widthPt: z.ZodNumber;
|
|
380
474
|
heightPt: z.ZodNumber;
|
|
381
475
|
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
476
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
382
477
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
383
478
|
}, z.core.$strip>, z.ZodObject<{
|
|
384
479
|
kind: z.ZodLiteral<"rect">;
|
|
@@ -399,6 +494,7 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
399
494
|
}, z.core.$strip>;
|
|
400
495
|
widthPt: z.ZodNumber;
|
|
401
496
|
}, z.core.$strip>>;
|
|
497
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
402
498
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
403
499
|
}, z.core.$strip>, z.ZodObject<{
|
|
404
500
|
kind: z.ZodLiteral<"line">;
|
|
@@ -418,6 +514,7 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
418
514
|
dotted: "dotted";
|
|
419
515
|
double: "double";
|
|
420
516
|
}>>;
|
|
517
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
421
518
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
422
519
|
}, z.core.$strip>, z.ZodObject<{
|
|
423
520
|
kind: z.ZodLiteral<"ellipse">;
|
|
@@ -438,6 +535,7 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
438
535
|
}, z.core.$strip>;
|
|
439
536
|
widthPt: z.ZodNumber;
|
|
440
537
|
}, z.core.$strip>>;
|
|
538
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
441
539
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
442
540
|
}, z.core.$strip>, z.ZodObject<{
|
|
443
541
|
kind: z.ZodLiteral<"path">;
|
|
@@ -482,6 +580,7 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
482
580
|
dotted: "dotted";
|
|
483
581
|
double: "double";
|
|
484
582
|
}>>;
|
|
583
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
485
584
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
486
585
|
}, z.core.$strip>, z.ZodObject<{
|
|
487
586
|
kind: z.ZodLiteral<"link">;
|
|
@@ -490,8 +589,57 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
490
589
|
yPt: z.ZodNumber;
|
|
491
590
|
widthPt: z.ZodNumber;
|
|
492
591
|
heightPt: z.ZodNumber;
|
|
592
|
+
title: z.ZodOptional<z.ZodString>;
|
|
493
593
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
594
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
595
|
+
kind: z.ZodLiteral<"internalLink">;
|
|
596
|
+
destination: z.ZodString;
|
|
597
|
+
xPt: z.ZodNumber;
|
|
598
|
+
yPt: z.ZodNumber;
|
|
599
|
+
widthPt: z.ZodNumber;
|
|
600
|
+
heightPt: z.ZodNumber;
|
|
601
|
+
title: z.ZodOptional<z.ZodString>;
|
|
494
602
|
}, z.core.$strip>], "kind">>;
|
|
603
|
+
annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
604
|
+
subtype: z.ZodString;
|
|
605
|
+
xPt: z.ZodNumber;
|
|
606
|
+
yPt: z.ZodNumber;
|
|
607
|
+
widthPt: z.ZodNumber;
|
|
608
|
+
heightPt: z.ZodNumber;
|
|
609
|
+
contents: z.ZodOptional<z.ZodString>;
|
|
610
|
+
author: z.ZodOptional<z.ZodString>;
|
|
611
|
+
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
612
|
+
quads: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodObject<{
|
|
613
|
+
xPt: z.ZodNumber;
|
|
614
|
+
yPt: z.ZodNumber;
|
|
615
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
616
|
+
xPt: z.ZodNumber;
|
|
617
|
+
yPt: z.ZodNumber;
|
|
618
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
619
|
+
xPt: z.ZodNumber;
|
|
620
|
+
yPt: z.ZodNumber;
|
|
621
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
622
|
+
xPt: z.ZodNumber;
|
|
623
|
+
yPt: z.ZodNumber;
|
|
624
|
+
}, z.core.$strip>], null>>>;
|
|
625
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
626
|
+
format: z.ZodEnum<{
|
|
627
|
+
docx: "docx";
|
|
628
|
+
pptx: "pptx";
|
|
629
|
+
xlsx: "xlsx";
|
|
630
|
+
odt: "odt";
|
|
631
|
+
ods: "ods";
|
|
632
|
+
odp: "odp";
|
|
633
|
+
odg: "odg";
|
|
634
|
+
odm: "odm";
|
|
635
|
+
odb: "odb";
|
|
636
|
+
odf: "odf";
|
|
637
|
+
markdown: "markdown";
|
|
638
|
+
pdf: "pdf";
|
|
639
|
+
}>;
|
|
640
|
+
xml: z.ZodString;
|
|
641
|
+
}, z.core.$strict>>;
|
|
642
|
+
}, z.core.$strip>>>;
|
|
495
643
|
notes: z.ZodOptional<z.ZodString>;
|
|
496
644
|
}, z.core.$strip>;
|
|
497
645
|
type LayoutPage = z.infer<typeof LayoutPageSchema>;
|
|
@@ -505,6 +653,84 @@ declare const LayoutImageAssetSchema: z.ZodObject<{
|
|
|
505
653
|
heightPx: z.ZodNumber;
|
|
506
654
|
}, z.core.$strip>;
|
|
507
655
|
type LayoutImageAsset = z.infer<typeof LayoutImageAssetSchema>;
|
|
656
|
+
declare const LayoutDestinationTargetSchema: z.ZodObject<{
|
|
657
|
+
kind: z.ZodEnum<{
|
|
658
|
+
xyz: "xyz";
|
|
659
|
+
fit: "fit";
|
|
660
|
+
fitH: "fitH";
|
|
661
|
+
fitV: "fitV";
|
|
662
|
+
fitR: "fitR";
|
|
663
|
+
fitB: "fitB";
|
|
664
|
+
fitBH: "fitBH";
|
|
665
|
+
fitBV: "fitBV";
|
|
666
|
+
}>;
|
|
667
|
+
leftPt: z.ZodOptional<z.ZodNumber>;
|
|
668
|
+
topPt: z.ZodOptional<z.ZodNumber>;
|
|
669
|
+
bottomPt: z.ZodOptional<z.ZodNumber>;
|
|
670
|
+
rightPt: z.ZodOptional<z.ZodNumber>;
|
|
671
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
672
|
+
}, z.core.$strip>;
|
|
673
|
+
type LayoutDestinationTarget = z.infer<typeof LayoutDestinationTargetSchema>;
|
|
674
|
+
declare const LayoutDestinationSchema: z.ZodObject<{
|
|
675
|
+
name: z.ZodString;
|
|
676
|
+
pageIndex: z.ZodNumber;
|
|
677
|
+
target: z.ZodObject<{
|
|
678
|
+
kind: z.ZodEnum<{
|
|
679
|
+
xyz: "xyz";
|
|
680
|
+
fit: "fit";
|
|
681
|
+
fitH: "fitH";
|
|
682
|
+
fitV: "fitV";
|
|
683
|
+
fitR: "fitR";
|
|
684
|
+
fitB: "fitB";
|
|
685
|
+
fitBH: "fitBH";
|
|
686
|
+
fitBV: "fitBV";
|
|
687
|
+
}>;
|
|
688
|
+
leftPt: z.ZodOptional<z.ZodNumber>;
|
|
689
|
+
topPt: z.ZodOptional<z.ZodNumber>;
|
|
690
|
+
bottomPt: z.ZodOptional<z.ZodNumber>;
|
|
691
|
+
rightPt: z.ZodOptional<z.ZodNumber>;
|
|
692
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
693
|
+
}, z.core.$strip>;
|
|
694
|
+
}, z.core.$strip>;
|
|
695
|
+
type LayoutDestination = z.infer<typeof LayoutDestinationSchema>;
|
|
696
|
+
declare const LayoutOutlineItemSchema: z.ZodType<LayoutOutlineItem, LayoutOutlineItem>;
|
|
697
|
+
interface LayoutOutlineItem {
|
|
698
|
+
readonly title: string;
|
|
699
|
+
readonly destination?: string;
|
|
700
|
+
readonly children: readonly LayoutOutlineItem[];
|
|
701
|
+
}
|
|
702
|
+
declare const LayoutAttachmentSchema: z.ZodObject<{
|
|
703
|
+
name: z.ZodString;
|
|
704
|
+
description: z.ZodOptional<z.ZodString>;
|
|
705
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
706
|
+
base64: z.ZodString;
|
|
707
|
+
}, z.core.$strip>;
|
|
708
|
+
type LayoutAttachment = z.infer<typeof LayoutAttachmentSchema>;
|
|
709
|
+
declare const LayoutFormWidgetSchema: z.ZodObject<{
|
|
710
|
+
pageIndex: z.ZodNumber;
|
|
711
|
+
xPt: z.ZodNumber;
|
|
712
|
+
yPt: z.ZodNumber;
|
|
713
|
+
widthPt: z.ZodNumber;
|
|
714
|
+
heightPt: z.ZodNumber;
|
|
715
|
+
}, z.core.$strip>;
|
|
716
|
+
type LayoutFormWidget = z.infer<typeof LayoutFormWidgetSchema>;
|
|
717
|
+
interface LayoutFormField {
|
|
718
|
+
readonly name: string;
|
|
719
|
+
readonly fieldType: 'text' | 'checkbox' | 'radio' | 'button' | 'listbox' | 'combobox' | 'signature' | 'group';
|
|
720
|
+
readonly value?: string;
|
|
721
|
+
readonly checked?: boolean;
|
|
722
|
+
readonly options?: readonly string[];
|
|
723
|
+
readonly alias?: string;
|
|
724
|
+
readonly readOnly?: boolean;
|
|
725
|
+
readonly widgets: readonly LayoutFormWidget[];
|
|
726
|
+
readonly children: readonly LayoutFormField[];
|
|
727
|
+
}
|
|
728
|
+
declare const LayoutFormFieldSchema: z.ZodType<LayoutFormField, LayoutFormField>;
|
|
729
|
+
declare const LayoutLayerSchema: z.ZodObject<{
|
|
730
|
+
name: z.ZodString;
|
|
731
|
+
visible: z.ZodBoolean;
|
|
732
|
+
}, z.core.$strip>;
|
|
733
|
+
type LayoutLayer = z.infer<typeof LayoutLayerSchema>;
|
|
508
734
|
declare const LayoutDocumentSchema: z.ZodObject<{
|
|
509
735
|
formatVersion: z.ZodLiteral<1>;
|
|
510
736
|
metadata: z.ZodObject<{
|
|
@@ -516,6 +742,7 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
516
742
|
producer: z.ZodOptional<z.ZodString>;
|
|
517
743
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
518
744
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
745
|
+
language: z.ZodOptional<z.ZodString>;
|
|
519
746
|
}, z.core.$strip>;
|
|
520
747
|
pages: z.ZodArray<z.ZodObject<{
|
|
521
748
|
widthPt: z.ZodNumber;
|
|
@@ -545,6 +772,9 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
545
772
|
widthPt: z.ZodOptional<z.ZodNumber>;
|
|
546
773
|
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
547
774
|
underline: z.ZodOptional<z.ZodBoolean>;
|
|
775
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
776
|
+
actualText: z.ZodOptional<z.ZodString>;
|
|
777
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
548
778
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
549
779
|
}, z.core.$strip>, z.ZodObject<{
|
|
550
780
|
kind: z.ZodLiteral<"image">;
|
|
@@ -554,6 +784,7 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
554
784
|
widthPt: z.ZodNumber;
|
|
555
785
|
heightPt: z.ZodNumber;
|
|
556
786
|
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
787
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
557
788
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
558
789
|
}, z.core.$strip>, z.ZodObject<{
|
|
559
790
|
kind: z.ZodLiteral<"rect">;
|
|
@@ -574,6 +805,7 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
574
805
|
}, z.core.$strip>;
|
|
575
806
|
widthPt: z.ZodNumber;
|
|
576
807
|
}, z.core.$strip>>;
|
|
808
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
577
809
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
578
810
|
}, z.core.$strip>, z.ZodObject<{
|
|
579
811
|
kind: z.ZodLiteral<"line">;
|
|
@@ -593,6 +825,7 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
593
825
|
dotted: "dotted";
|
|
594
826
|
double: "double";
|
|
595
827
|
}>>;
|
|
828
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
596
829
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
597
830
|
}, z.core.$strip>, z.ZodObject<{
|
|
598
831
|
kind: z.ZodLiteral<"ellipse">;
|
|
@@ -613,6 +846,7 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
613
846
|
}, z.core.$strip>;
|
|
614
847
|
widthPt: z.ZodNumber;
|
|
615
848
|
}, z.core.$strip>>;
|
|
849
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
616
850
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
617
851
|
}, z.core.$strip>, z.ZodObject<{
|
|
618
852
|
kind: z.ZodLiteral<"path">;
|
|
@@ -657,6 +891,7 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
657
891
|
dotted: "dotted";
|
|
658
892
|
double: "double";
|
|
659
893
|
}>>;
|
|
894
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
660
895
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
661
896
|
}, z.core.$strip>, z.ZodObject<{
|
|
662
897
|
kind: z.ZodLiteral<"link">;
|
|
@@ -665,8 +900,57 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
665
900
|
yPt: z.ZodNumber;
|
|
666
901
|
widthPt: z.ZodNumber;
|
|
667
902
|
heightPt: z.ZodNumber;
|
|
903
|
+
title: z.ZodOptional<z.ZodString>;
|
|
668
904
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
905
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
906
|
+
kind: z.ZodLiteral<"internalLink">;
|
|
907
|
+
destination: z.ZodString;
|
|
908
|
+
xPt: z.ZodNumber;
|
|
909
|
+
yPt: z.ZodNumber;
|
|
910
|
+
widthPt: z.ZodNumber;
|
|
911
|
+
heightPt: z.ZodNumber;
|
|
912
|
+
title: z.ZodOptional<z.ZodString>;
|
|
669
913
|
}, z.core.$strip>], "kind">>;
|
|
914
|
+
annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
915
|
+
subtype: z.ZodString;
|
|
916
|
+
xPt: z.ZodNumber;
|
|
917
|
+
yPt: z.ZodNumber;
|
|
918
|
+
widthPt: z.ZodNumber;
|
|
919
|
+
heightPt: z.ZodNumber;
|
|
920
|
+
contents: z.ZodOptional<z.ZodString>;
|
|
921
|
+
author: z.ZodOptional<z.ZodString>;
|
|
922
|
+
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
923
|
+
quads: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodObject<{
|
|
924
|
+
xPt: z.ZodNumber;
|
|
925
|
+
yPt: z.ZodNumber;
|
|
926
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
927
|
+
xPt: z.ZodNumber;
|
|
928
|
+
yPt: z.ZodNumber;
|
|
929
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
930
|
+
xPt: z.ZodNumber;
|
|
931
|
+
yPt: z.ZodNumber;
|
|
932
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
933
|
+
xPt: z.ZodNumber;
|
|
934
|
+
yPt: z.ZodNumber;
|
|
935
|
+
}, z.core.$strip>], null>>>;
|
|
936
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
937
|
+
format: z.ZodEnum<{
|
|
938
|
+
docx: "docx";
|
|
939
|
+
pptx: "pptx";
|
|
940
|
+
xlsx: "xlsx";
|
|
941
|
+
odt: "odt";
|
|
942
|
+
ods: "ods";
|
|
943
|
+
odp: "odp";
|
|
944
|
+
odg: "odg";
|
|
945
|
+
odm: "odm";
|
|
946
|
+
odb: "odb";
|
|
947
|
+
odf: "odf";
|
|
948
|
+
markdown: "markdown";
|
|
949
|
+
pdf: "pdf";
|
|
950
|
+
}>;
|
|
951
|
+
xml: z.ZodString;
|
|
952
|
+
}, z.core.$strict>>;
|
|
953
|
+
}, z.core.$strip>>>;
|
|
670
954
|
notes: z.ZodOptional<z.ZodString>;
|
|
671
955
|
}, z.core.$strip>>;
|
|
672
956
|
images: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -678,7 +962,57 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
678
962
|
widthPx: z.ZodNumber;
|
|
679
963
|
heightPx: z.ZodNumber;
|
|
680
964
|
}, z.core.$strip>>;
|
|
965
|
+
destinations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
966
|
+
name: z.ZodString;
|
|
967
|
+
pageIndex: z.ZodNumber;
|
|
968
|
+
target: z.ZodObject<{
|
|
969
|
+
kind: z.ZodEnum<{
|
|
970
|
+
xyz: "xyz";
|
|
971
|
+
fit: "fit";
|
|
972
|
+
fitH: "fitH";
|
|
973
|
+
fitV: "fitV";
|
|
974
|
+
fitR: "fitR";
|
|
975
|
+
fitB: "fitB";
|
|
976
|
+
fitBH: "fitBH";
|
|
977
|
+
fitBV: "fitBV";
|
|
978
|
+
}>;
|
|
979
|
+
leftPt: z.ZodOptional<z.ZodNumber>;
|
|
980
|
+
topPt: z.ZodOptional<z.ZodNumber>;
|
|
981
|
+
bottomPt: z.ZodOptional<z.ZodNumber>;
|
|
982
|
+
rightPt: z.ZodOptional<z.ZodNumber>;
|
|
983
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
984
|
+
}, z.core.$strip>;
|
|
985
|
+
}, z.core.$strip>>>;
|
|
986
|
+
outline: z.ZodOptional<z.ZodArray<z.ZodType<LayoutOutlineItem, LayoutOutlineItem, z.core.$ZodTypeInternals<LayoutOutlineItem, LayoutOutlineItem>>>>;
|
|
987
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
988
|
+
name: z.ZodString;
|
|
989
|
+
description: z.ZodOptional<z.ZodString>;
|
|
990
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
991
|
+
base64: z.ZodString;
|
|
992
|
+
}, z.core.$strip>>>;
|
|
993
|
+
layers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
994
|
+
name: z.ZodString;
|
|
995
|
+
visible: z.ZodBoolean;
|
|
996
|
+
}, z.core.$strip>>>;
|
|
997
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<LayoutFormField, LayoutFormField, z.core.$ZodTypeInternals<LayoutFormField, LayoutFormField>>>>;
|
|
998
|
+
source: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
999
|
+
format: z.ZodEnum<{
|
|
1000
|
+
docx: "docx";
|
|
1001
|
+
pptx: "pptx";
|
|
1002
|
+
xlsx: "xlsx";
|
|
1003
|
+
odt: "odt";
|
|
1004
|
+
ods: "ods";
|
|
1005
|
+
odp: "odp";
|
|
1006
|
+
odg: "odg";
|
|
1007
|
+
odm: "odm";
|
|
1008
|
+
odb: "odb";
|
|
1009
|
+
odf: "odf";
|
|
1010
|
+
markdown: "markdown";
|
|
1011
|
+
pdf: "pdf";
|
|
1012
|
+
}>;
|
|
1013
|
+
xml: z.ZodString;
|
|
1014
|
+
}, z.core.$strict>>>;
|
|
681
1015
|
}, z.core.$strip>;
|
|
682
1016
|
type LayoutDocument = z.infer<typeof LayoutDocumentSchema>;
|
|
683
1017
|
//#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 };
|
|
1018
|
+
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, LayoutSubpath, LayoutSubpathSchema, LayoutText, LayoutTextSchema };
|