pdf-parser.js 3.0.7 → 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.cjs
CHANGED
|
@@ -14,6 +14,10 @@ const LayoutTextSchema = zod.z.object({
|
|
|
14
14
|
widthPt: zod.z.number().nonnegative().optional(),
|
|
15
15
|
rotationDeg: zod.z.number().optional(),
|
|
16
16
|
underline: zod.z.boolean().optional(),
|
|
17
|
+
layer: zod.z.string().optional(),
|
|
18
|
+
actualText: zod.z.string().optional(),
|
|
19
|
+
alt: zod.z.string().optional(),
|
|
20
|
+
structure: zod.z.string().optional(),
|
|
17
21
|
sourcePath: zod.z.string().optional()
|
|
18
22
|
});
|
|
19
23
|
const LayoutImageSchema = zod.z.object({
|
|
@@ -24,6 +28,8 @@ const LayoutImageSchema = zod.z.object({
|
|
|
24
28
|
widthPt: zod.z.number().positive(),
|
|
25
29
|
heightPt: zod.z.number().positive(),
|
|
26
30
|
rotationDeg: zod.z.number().optional(),
|
|
31
|
+
layer: zod.z.string().optional(),
|
|
32
|
+
structure: zod.z.string().optional(),
|
|
27
33
|
sourcePath: zod.z.string().optional()
|
|
28
34
|
});
|
|
29
35
|
const LayoutRectSchema = zod.z.object({
|
|
@@ -37,6 +43,8 @@ const LayoutRectSchema = zod.z.object({
|
|
|
37
43
|
color: document_schema_js.ColorSchema,
|
|
38
44
|
widthPt: zod.z.number().positive()
|
|
39
45
|
}).optional(),
|
|
46
|
+
layer: zod.z.string().optional(),
|
|
47
|
+
structure: zod.z.string().optional(),
|
|
40
48
|
sourcePath: zod.z.string().optional()
|
|
41
49
|
});
|
|
42
50
|
const LayoutLineSchema = zod.z.object({
|
|
@@ -48,6 +56,8 @@ const LayoutLineSchema = zod.z.object({
|
|
|
48
56
|
color: document_schema_js.ColorSchema,
|
|
49
57
|
widthPt: zod.z.number().positive(),
|
|
50
58
|
style: document_schema_js.ContentStrokeStyleSchema.optional(),
|
|
59
|
+
layer: zod.z.string().optional(),
|
|
60
|
+
structure: zod.z.string().optional(),
|
|
51
61
|
sourcePath: zod.z.string().optional()
|
|
52
62
|
});
|
|
53
63
|
const LayoutEllipseSchema = zod.z.object({
|
|
@@ -61,6 +71,8 @@ const LayoutEllipseSchema = zod.z.object({
|
|
|
61
71
|
color: document_schema_js.ColorSchema,
|
|
62
72
|
widthPt: zod.z.number().positive()
|
|
63
73
|
}).optional(),
|
|
74
|
+
layer: zod.z.string().optional(),
|
|
75
|
+
structure: zod.z.string().optional(),
|
|
64
76
|
sourcePath: zod.z.string().optional()
|
|
65
77
|
});
|
|
66
78
|
const LayoutPathSegmentSchema = zod.z.discriminatedUnion("kind", [zod.z.object({
|
|
@@ -92,6 +104,8 @@ const LayoutPathSchema = zod.z.object({
|
|
|
92
104
|
widthPt: zod.z.number().positive()
|
|
93
105
|
}).optional(),
|
|
94
106
|
style: document_schema_js.ContentStrokeStyleSchema.optional(),
|
|
107
|
+
layer: zod.z.string().optional(),
|
|
108
|
+
structure: zod.z.string().optional(),
|
|
95
109
|
sourcePath: zod.z.string().optional()
|
|
96
110
|
});
|
|
97
111
|
const LayoutLinkSchema = zod.z.object({
|
|
@@ -101,8 +115,18 @@ const LayoutLinkSchema = zod.z.object({
|
|
|
101
115
|
yPt: zod.z.number(),
|
|
102
116
|
widthPt: zod.z.number().nonnegative(),
|
|
103
117
|
heightPt: zod.z.number().nonnegative(),
|
|
118
|
+
title: zod.z.string().optional(),
|
|
104
119
|
sourcePath: zod.z.string().optional()
|
|
105
120
|
});
|
|
121
|
+
const LayoutInternalLinkSchema = zod.z.object({
|
|
122
|
+
kind: zod.z.literal("internalLink"),
|
|
123
|
+
destination: zod.z.string(),
|
|
124
|
+
xPt: zod.z.number(),
|
|
125
|
+
yPt: zod.z.number(),
|
|
126
|
+
widthPt: zod.z.number().nonnegative(),
|
|
127
|
+
heightPt: zod.z.number().nonnegative(),
|
|
128
|
+
title: zod.z.string().optional()
|
|
129
|
+
});
|
|
106
130
|
const LayoutItemSchema = zod.z.discriminatedUnion("kind", [
|
|
107
131
|
LayoutTextSchema,
|
|
108
132
|
LayoutImageSchema,
|
|
@@ -110,12 +134,44 @@ const LayoutItemSchema = zod.z.discriminatedUnion("kind", [
|
|
|
110
134
|
LayoutLineSchema,
|
|
111
135
|
LayoutEllipseSchema,
|
|
112
136
|
LayoutPathSchema,
|
|
113
|
-
LayoutLinkSchema
|
|
137
|
+
LayoutLinkSchema,
|
|
138
|
+
LayoutInternalLinkSchema
|
|
114
139
|
]);
|
|
140
|
+
const LayoutAnnotationQuadSchema = zod.z.tuple([
|
|
141
|
+
zod.z.object({
|
|
142
|
+
xPt: zod.z.number(),
|
|
143
|
+
yPt: zod.z.number()
|
|
144
|
+
}),
|
|
145
|
+
zod.z.object({
|
|
146
|
+
xPt: zod.z.number(),
|
|
147
|
+
yPt: zod.z.number()
|
|
148
|
+
}),
|
|
149
|
+
zod.z.object({
|
|
150
|
+
xPt: zod.z.number(),
|
|
151
|
+
yPt: zod.z.number()
|
|
152
|
+
}),
|
|
153
|
+
zod.z.object({
|
|
154
|
+
xPt: zod.z.number(),
|
|
155
|
+
yPt: zod.z.number()
|
|
156
|
+
})
|
|
157
|
+
]);
|
|
158
|
+
const LayoutAnnotationSchema = zod.z.object({
|
|
159
|
+
subtype: zod.z.string(),
|
|
160
|
+
xPt: zod.z.number(),
|
|
161
|
+
yPt: zod.z.number(),
|
|
162
|
+
widthPt: zod.z.number().nonnegative(),
|
|
163
|
+
heightPt: zod.z.number().nonnegative(),
|
|
164
|
+
contents: zod.z.string().optional(),
|
|
165
|
+
author: zod.z.string().optional(),
|
|
166
|
+
modifiedIso: zod.z.string().optional(),
|
|
167
|
+
quads: zod.z.array(LayoutAnnotationQuadSchema).optional(),
|
|
168
|
+
source: document_schema_js.SourceResidueSchema.optional()
|
|
169
|
+
});
|
|
115
170
|
const LayoutPageSchema = zod.z.object({
|
|
116
171
|
widthPt: zod.z.number().positive(),
|
|
117
172
|
heightPt: zod.z.number().positive(),
|
|
118
173
|
items: zod.z.array(LayoutItemSchema),
|
|
174
|
+
annotations: zod.z.array(LayoutAnnotationSchema).optional(),
|
|
119
175
|
notes: zod.z.string().optional()
|
|
120
176
|
});
|
|
121
177
|
const LayoutImageAssetSchema = zod.z.object({
|
|
@@ -124,24 +180,115 @@ const LayoutImageAssetSchema = zod.z.object({
|
|
|
124
180
|
widthPx: zod.z.number().int().positive(),
|
|
125
181
|
heightPx: zod.z.number().int().positive()
|
|
126
182
|
});
|
|
183
|
+
const LayoutDestinationTargetSchema = zod.z.object({
|
|
184
|
+
kind: zod.z.enum([
|
|
185
|
+
"xyz",
|
|
186
|
+
"fit",
|
|
187
|
+
"fitH",
|
|
188
|
+
"fitV",
|
|
189
|
+
"fitR",
|
|
190
|
+
"fitB",
|
|
191
|
+
"fitBH",
|
|
192
|
+
"fitBV"
|
|
193
|
+
]),
|
|
194
|
+
leftPt: zod.z.number().optional(),
|
|
195
|
+
topPt: zod.z.number().optional(),
|
|
196
|
+
bottomPt: zod.z.number().optional(),
|
|
197
|
+
rightPt: zod.z.number().optional(),
|
|
198
|
+
zoom: zod.z.number().optional()
|
|
199
|
+
});
|
|
200
|
+
const LayoutDestinationSchema = zod.z.object({
|
|
201
|
+
name: zod.z.string(),
|
|
202
|
+
pageIndex: zod.z.number().int().nonnegative(),
|
|
203
|
+
target: LayoutDestinationTargetSchema
|
|
204
|
+
});
|
|
205
|
+
const LayoutOutlineItemSchema = zod.z.lazy(() => zod.z.object({
|
|
206
|
+
title: zod.z.string(),
|
|
207
|
+
destination: zod.z.string().optional(),
|
|
208
|
+
children: zod.z.array(LayoutOutlineItemSchema)
|
|
209
|
+
}));
|
|
210
|
+
const LayoutAttachmentSchema = zod.z.object({
|
|
211
|
+
name: zod.z.string(),
|
|
212
|
+
description: zod.z.string().optional(),
|
|
213
|
+
mimeType: zod.z.string().optional(),
|
|
214
|
+
base64: zod.z.string()
|
|
215
|
+
});
|
|
216
|
+
const LayoutFormWidgetSchema = zod.z.object({
|
|
217
|
+
pageIndex: zod.z.number().int().nonnegative(),
|
|
218
|
+
xPt: zod.z.number(),
|
|
219
|
+
yPt: zod.z.number(),
|
|
220
|
+
widthPt: zod.z.number().nonnegative(),
|
|
221
|
+
heightPt: zod.z.number().nonnegative()
|
|
222
|
+
});
|
|
223
|
+
const LayoutFormFieldSchema = zod.z.lazy(() => zod.z.object({
|
|
224
|
+
name: zod.z.string(),
|
|
225
|
+
fieldType: zod.z.enum([
|
|
226
|
+
"text",
|
|
227
|
+
"checkbox",
|
|
228
|
+
"radio",
|
|
229
|
+
"button",
|
|
230
|
+
"listbox",
|
|
231
|
+
"combobox",
|
|
232
|
+
"signature",
|
|
233
|
+
"group"
|
|
234
|
+
]),
|
|
235
|
+
value: zod.z.string().optional(),
|
|
236
|
+
checked: zod.z.boolean().optional(),
|
|
237
|
+
options: zod.z.array(zod.z.string()).optional(),
|
|
238
|
+
alias: zod.z.string().optional(),
|
|
239
|
+
readOnly: zod.z.boolean().optional(),
|
|
240
|
+
widgets: zod.z.array(LayoutFormWidgetSchema),
|
|
241
|
+
children: zod.z.array(LayoutFormFieldSchema)
|
|
242
|
+
}));
|
|
243
|
+
const LayoutLayerSchema = zod.z.object({
|
|
244
|
+
name: zod.z.string(),
|
|
245
|
+
visible: zod.z.boolean()
|
|
246
|
+
});
|
|
247
|
+
const LayoutStructureElementSchema = zod.z.lazy(() => zod.z.object({
|
|
248
|
+
id: zod.z.string(),
|
|
249
|
+
type: zod.z.string(),
|
|
250
|
+
title: zod.z.string().optional(),
|
|
251
|
+
language: zod.z.string().optional(),
|
|
252
|
+
alt: zod.z.string().optional(),
|
|
253
|
+
actualText: zod.z.string().optional(),
|
|
254
|
+
children: zod.z.array(LayoutStructureElementSchema)
|
|
255
|
+
}));
|
|
127
256
|
const LayoutDocumentSchema = zod.z.object({
|
|
128
257
|
formatVersion: zod.z.literal(1),
|
|
129
258
|
metadata: document_schema_js.LayoutMetadataSchema,
|
|
130
259
|
pages: zod.z.array(LayoutPageSchema),
|
|
131
|
-
images: zod.z.record(zod.z.string(), LayoutImageAssetSchema)
|
|
260
|
+
images: zod.z.record(zod.z.string(), LayoutImageAssetSchema),
|
|
261
|
+
destinations: zod.z.array(LayoutDestinationSchema).optional(),
|
|
262
|
+
outline: zod.z.array(LayoutOutlineItemSchema).optional(),
|
|
263
|
+
attachments: zod.z.array(LayoutAttachmentSchema).optional(),
|
|
264
|
+
layers: zod.z.array(LayoutLayerSchema).optional(),
|
|
265
|
+
structure: zod.z.array(LayoutStructureElementSchema).optional(),
|
|
266
|
+
form: zod.z.array(LayoutFormFieldSchema).optional(),
|
|
267
|
+
source: zod.z.record(zod.z.string(), document_schema_js.SourceResidueSchema).optional()
|
|
132
268
|
});
|
|
133
269
|
//#endregion
|
|
134
270
|
exports.LAYOUT_FORMAT_VERSION = LAYOUT_FORMAT_VERSION;
|
|
271
|
+
exports.LayoutAnnotationQuadSchema = LayoutAnnotationQuadSchema;
|
|
272
|
+
exports.LayoutAnnotationSchema = LayoutAnnotationSchema;
|
|
273
|
+
exports.LayoutAttachmentSchema = LayoutAttachmentSchema;
|
|
274
|
+
exports.LayoutDestinationSchema = LayoutDestinationSchema;
|
|
275
|
+
exports.LayoutDestinationTargetSchema = LayoutDestinationTargetSchema;
|
|
135
276
|
exports.LayoutDocumentSchema = LayoutDocumentSchema;
|
|
136
277
|
exports.LayoutEllipseSchema = LayoutEllipseSchema;
|
|
278
|
+
exports.LayoutFormFieldSchema = LayoutFormFieldSchema;
|
|
279
|
+
exports.LayoutFormWidgetSchema = LayoutFormWidgetSchema;
|
|
137
280
|
exports.LayoutImageAssetSchema = LayoutImageAssetSchema;
|
|
138
281
|
exports.LayoutImageSchema = LayoutImageSchema;
|
|
282
|
+
exports.LayoutInternalLinkSchema = LayoutInternalLinkSchema;
|
|
139
283
|
exports.LayoutItemSchema = LayoutItemSchema;
|
|
284
|
+
exports.LayoutLayerSchema = LayoutLayerSchema;
|
|
140
285
|
exports.LayoutLineSchema = LayoutLineSchema;
|
|
141
286
|
exports.LayoutLinkSchema = LayoutLinkSchema;
|
|
287
|
+
exports.LayoutOutlineItemSchema = LayoutOutlineItemSchema;
|
|
142
288
|
exports.LayoutPageSchema = LayoutPageSchema;
|
|
143
289
|
exports.LayoutPathSchema = LayoutPathSchema;
|
|
144
290
|
exports.LayoutPathSegmentSchema = LayoutPathSegmentSchema;
|
|
145
291
|
exports.LayoutRectSchema = LayoutRectSchema;
|
|
292
|
+
exports.LayoutStructureElementSchema = LayoutStructureElementSchema;
|
|
146
293
|
exports.LayoutSubpathSchema = LayoutSubpathSchema;
|
|
147
294
|
exports.LayoutTextSchema = LayoutTextSchema;
|