pdf-codec 3.5.3 → 3.6.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.
Files changed (46) hide show
  1. package/README.md +12 -2
  2. package/dist/{afm-widths-W02fJh-k.cjs → afm-widths-BTu0IDp2.cjs} +570 -1
  3. package/dist/{afm-widths-B6KdmpRF.js → afm-widths-De_QMWgC.js} +541 -2
  4. package/dist/afm-widths.cjs +1 -1
  5. package/dist/afm-widths.js +1 -1
  6. package/dist/builtin-encoding.cjs +221 -0
  7. package/dist/builtin-encoding.d.cts +8 -0
  8. package/dist/builtin-encoding.d.ts +8 -0
  9. package/dist/builtin-encoding.js +220 -0
  10. package/dist/cff.cjs +14 -0
  11. package/dist/cff.d.cts +4 -1
  12. package/dist/cff.d.ts +4 -1
  13. package/dist/cff.js +12 -1
  14. package/dist/cmap-table.cjs +76 -13
  15. package/dist/cmap-table.d.cts +9 -1
  16. package/dist/cmap-table.d.ts +9 -1
  17. package/dist/cmap-table.js +77 -15
  18. package/dist/codec.d.cts +2 -0
  19. package/dist/codec.d.ts +2 -0
  20. package/dist/content-write.cjs +1 -1
  21. package/dist/content-write.js +1 -1
  22. package/dist/encoding.cjs +6 -1
  23. package/dist/encoding.d.cts +6 -1
  24. package/dist/encoding.d.ts +6 -1
  25. package/dist/encoding.js +2 -2
  26. package/dist/font-read.cjs +56 -11
  27. package/dist/font-read.js +57 -12
  28. package/dist/font-tables.cjs +31 -0
  29. package/dist/font-tables.d.cts +3 -1
  30. package/dist/font-tables.d.ts +3 -1
  31. package/dist/font-tables.js +31 -2
  32. package/dist/index.cjs +1 -1
  33. package/dist/index.js +1 -1
  34. package/dist/interpret.cjs +72 -41
  35. package/dist/interpret.js +72 -41
  36. package/dist/layout.d.cts +4 -0
  37. package/dist/layout.d.ts +4 -0
  38. package/dist/math-font.cjs +1 -1
  39. package/dist/math-font.js +1 -1
  40. package/dist/measure.cjs +1 -1
  41. package/dist/measure.js +1 -1
  42. package/dist/winansi.cjs +1 -1
  43. package/dist/winansi.js +1 -1
  44. package/dist/write.cjs +1 -1
  45. package/dist/write.js +1 -1
  46. package/package.json +2 -2
package/dist/math-font.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { base64ToBytes } from "./util/base64.js";
2
2
  import { i16, parseSfnt, sfntTableBytes, u16 } from "./sfnt.js";
3
- import { parseCffGlyphBounds } from "./cff-bounds.js";
4
3
  import { buildCmapLookup } from "./cmap-table.js";
4
+ import { parseCffGlyphBounds } from "./cff-bounds.js";
5
5
  import { parseHmtx } from "./hmtx-table.js";
6
6
  import { STIX_TWO_MATH_FONT_BASE64 } from "./assets/stix-two-math-font.js";
7
7
  import { assembleStretchyGlyph, scaleMathStretchConstruction } from "./math-stretch.js";
package/dist/measure.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_afm_widths = require("./afm-widths-W02fJh-k.cjs");
2
+ const require_afm_widths = require("./afm-widths-BTu0IDp2.cjs");
3
3
  const require_embedded_font = require("./embedded-font.cjs");
4
4
  const require_font_registry = require("./font-registry.cjs");
5
5
  //#region src/measure.ts
package/dist/measure.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as STANDARD_METRICS, u as encodeForShow } from "./afm-widths-B6KdmpRF.js";
1
+ import { h as encodeForShow, t as STANDARD_METRICS } from "./afm-widths-De_QMWgC.js";
2
2
  import { encodeForShowEmbedded } from "./embedded-font.js";
3
3
  import { resolveFaceWithRegistry } from "./font-registry.js";
4
4
  //#region src/measure.ts
package/dist/winansi.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_afm_widths = require("./afm-widths-W02fJh-k.cjs");
2
+ const require_afm_widths = require("./afm-widths-BTu0IDp2.cjs");
3
3
  exports.encodeForShow = require_afm_widths.encodeForShow;
4
4
  exports.sanitizeToWinAnsi = require_afm_widths.sanitizeToWinAnsi;
5
5
  exports.winAnsiCodeToUnicode = require_afm_widths.winAnsiCodeToUnicode;
package/dist/winansi.js CHANGED
@@ -1,2 +1,2 @@
1
- import { d as sanitizeToWinAnsi, f as winAnsiCodeToUnicode, u as encodeForShow } from "./afm-widths-B6KdmpRF.js";
1
+ import { _ as winAnsiCodeToUnicode, g as sanitizeToWinAnsi, h as encodeForShow } from "./afm-widths-De_QMWgC.js";
2
2
  export { encodeForShow, sanitizeToWinAnsi, winAnsiCodeToUnicode };
package/dist/write.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_afm_widths = require("./afm-widths-W02fJh-k.cjs");
2
+ const require_afm_widths = require("./afm-widths-BTu0IDp2.cjs");
3
3
  const require_notes_annotation_author = require("./notes-annotation-author.cjs");
4
4
  const require_objects = require("./objects.cjs");
5
5
  const require_bytes_writer = require("./bytes/writer.cjs");
package/dist/write.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as winAnsiGlyphName, n as widthOfCode, t as STANDARD_METRICS } from "./afm-widths-B6KdmpRF.js";
1
+ import { n as widthOfCode, p as winAnsiGlyphName, t as STANDARD_METRICS } from "./afm-widths-De_QMWgC.js";
2
2
  import { NOTES_ANNOTATION_AUTHOR } from "./notes-annotation-author.js";
3
3
  import { pdfArray, pdfDict, pdfHexString, pdfName, pdfNull, pdfNum, pdfRef, pdfStream } from "./objects.js";
4
4
  import { ByteWriter, concatBytes } from "./bytes/writer.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pdf-codec",
3
- "version": "3.5.3",
3
+ "version": "3.6.0",
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": {
@@ -98,7 +98,7 @@
98
98
  "packageManager": "pnpm@11.6.0",
99
99
  "dependencies": {
100
100
  "byte-codec": "^1.2.0",
101
- "document-schema.js": "^5.3.0",
101
+ "document-schema.js": "^5.4.0",
102
102
  "fflate": "^0.8.3",
103
103
  "zod": "^4.4.3"
104
104
  },