pdf-parser.js 5.2.6 → 5.2.8

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/codec.d.cts CHANGED
@@ -38,12 +38,12 @@ declare const pdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
38
38
  font: z.ZodObject<{
39
39
  family: z.ZodString;
40
40
  weight: z.ZodEnum<{
41
- bold: "bold";
42
41
  normal: "normal";
42
+ bold: "bold";
43
43
  }>;
44
44
  style: z.ZodEnum<{
45
- italic: "italic";
46
45
  normal: "normal";
46
+ italic: "italic";
47
47
  }>;
48
48
  }, z.core.$strip>;
49
49
  sizePt: z.ZodNumber;
package/dist/codec.d.ts CHANGED
@@ -38,12 +38,12 @@ declare const pdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
38
38
  font: z.ZodObject<{
39
39
  family: z.ZodString;
40
40
  weight: z.ZodEnum<{
41
- bold: "bold";
42
41
  normal: "normal";
42
+ bold: "bold";
43
43
  }>;
44
44
  style: z.ZodEnum<{
45
- italic: "italic";
46
45
  normal: "normal";
46
+ italic: "italic";
47
47
  }>;
48
48
  }, z.core.$strip>;
49
49
  sizePt: z.ZodNumber;
package/dist/layout.d.cts CHANGED
@@ -9,12 +9,12 @@ declare const LayoutTextSchema: z.ZodObject<{
9
9
  font: z.ZodObject<{
10
10
  family: z.ZodString;
11
11
  weight: z.ZodEnum<{
12
- bold: "bold";
13
12
  normal: "normal";
13
+ bold: "bold";
14
14
  }>;
15
15
  style: z.ZodEnum<{
16
- italic: "italic";
17
16
  normal: "normal";
17
+ italic: "italic";
18
18
  }>;
19
19
  }, z.core.$strip>;
20
20
  sizePt: z.ZodNumber;
@@ -228,12 +228,12 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
228
228
  font: z.ZodObject<{
229
229
  family: z.ZodString;
230
230
  weight: z.ZodEnum<{
231
- bold: "bold";
232
231
  normal: "normal";
232
+ bold: "bold";
233
233
  }>;
234
234
  style: z.ZodEnum<{
235
- italic: "italic";
236
235
  normal: "normal";
236
+ italic: "italic";
237
237
  }>;
238
238
  }, z.core.$strip>;
239
239
  sizePt: z.ZodNumber;
@@ -461,12 +461,12 @@ declare const LayoutPageSchema: z.ZodObject<{
461
461
  font: z.ZodObject<{
462
462
  family: z.ZodString;
463
463
  weight: z.ZodEnum<{
464
- bold: "bold";
465
464
  normal: "normal";
465
+ bold: "bold";
466
466
  }>;
467
467
  style: z.ZodEnum<{
468
- italic: "italic";
469
468
  normal: "normal";
469
+ italic: "italic";
470
470
  }>;
471
471
  }, z.core.$strip>;
472
472
  sizePt: z.ZodNumber;
@@ -812,12 +812,12 @@ declare const LayoutDocumentSchema: z.ZodObject<{
812
812
  font: z.ZodObject<{
813
813
  family: z.ZodString;
814
814
  weight: z.ZodEnum<{
815
- bold: "bold";
816
815
  normal: "normal";
816
+ bold: "bold";
817
817
  }>;
818
818
  style: z.ZodEnum<{
819
- italic: "italic";
820
819
  normal: "normal";
820
+ italic: "italic";
821
821
  }>;
822
822
  }, z.core.$strip>;
823
823
  sizePt: z.ZodNumber;
package/dist/layout.d.ts CHANGED
@@ -9,12 +9,12 @@ declare const LayoutTextSchema: z.ZodObject<{
9
9
  font: z.ZodObject<{
10
10
  family: z.ZodString;
11
11
  weight: z.ZodEnum<{
12
- bold: "bold";
13
12
  normal: "normal";
13
+ bold: "bold";
14
14
  }>;
15
15
  style: z.ZodEnum<{
16
- italic: "italic";
17
16
  normal: "normal";
17
+ italic: "italic";
18
18
  }>;
19
19
  }, z.core.$strip>;
20
20
  sizePt: z.ZodNumber;
@@ -228,12 +228,12 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
228
228
  font: z.ZodObject<{
229
229
  family: z.ZodString;
230
230
  weight: z.ZodEnum<{
231
- bold: "bold";
232
231
  normal: "normal";
232
+ bold: "bold";
233
233
  }>;
234
234
  style: z.ZodEnum<{
235
- italic: "italic";
236
235
  normal: "normal";
236
+ italic: "italic";
237
237
  }>;
238
238
  }, z.core.$strip>;
239
239
  sizePt: z.ZodNumber;
@@ -461,12 +461,12 @@ declare const LayoutPageSchema: z.ZodObject<{
461
461
  font: z.ZodObject<{
462
462
  family: z.ZodString;
463
463
  weight: z.ZodEnum<{
464
- bold: "bold";
465
464
  normal: "normal";
465
+ bold: "bold";
466
466
  }>;
467
467
  style: z.ZodEnum<{
468
- italic: "italic";
469
468
  normal: "normal";
469
+ italic: "italic";
470
470
  }>;
471
471
  }, z.core.$strip>;
472
472
  sizePt: z.ZodNumber;
@@ -812,12 +812,12 @@ declare const LayoutDocumentSchema: z.ZodObject<{
812
812
  font: z.ZodObject<{
813
813
  family: z.ZodString;
814
814
  weight: z.ZodEnum<{
815
- bold: "bold";
816
815
  normal: "normal";
816
+ bold: "bold";
817
817
  }>;
818
818
  style: z.ZodEnum<{
819
- italic: "italic";
820
819
  normal: "normal";
820
+ italic: "italic";
821
821
  }>;
822
822
  }, z.core.$strip>;
823
823
  sizePt: z.ZodNumber;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pdf-parser.js",
3
- "version": "5.2.6",
3
+ "version": "5.2.8",
4
4
  "description": "Hand-written, dependency-minimal PDF codec: parses arbitrary real-world PDFs and generates new ones, built on its own codec-owned LayoutDocument item model and Zod 4 codecs.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -72,7 +72,7 @@
72
72
  ],
73
73
  "license": "MIT",
74
74
  "dependencies": {
75
- "byte-codec": "1.8.1",
75
+ "byte-codec": "1.10.0",
76
76
  "document-schema.js": "7.15.0",
77
77
  "fflate": "0.8.3",
78
78
  "zod": "4.4.3"