pdf-codec 1.2.1 → 1.3.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.
Files changed (2) hide show
  1. package/README.md +29 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -10,6 +10,35 @@ That is a genuinely large undertaking — this codec is comparable in size to a
10
10
 
11
11
  `documents.js` uses this package to convert docx/pptx/odt/odp/ods/odg to and from PDF, and to render MathML formulas (typeset by its own `src/mathml/` engine) through the embedded math font this package parses and writes. That MathML *layout* engine deliberately stays in `documents.js` — see [Architecture](#architecture) below for exactly where the boundary between the two packages sits and why a real `MathBox` value crosses it with zero cast or wrapper.
12
12
 
13
+ ```mermaid
14
+ graph TD
15
+ schema("document-schema.js")
16
+ ooxml("ooxml.js")
17
+ odf("odf.js")
18
+ pdfcodec("pdf-codec")
19
+ documents("documents.js")
20
+ cli("document-cli")
21
+
22
+ schema --> ooxml
23
+ schema --> odf
24
+ schema --> pdfcodec
25
+ schema --> documents
26
+ ooxml --> documents
27
+ odf --> documents
28
+ pdfcodec --> documents
29
+ documents --> cli
30
+ odf --> cli
31
+
32
+ click schema "https://github.com/ExaDev/document-schema.js" "document-schema.js"
33
+ click ooxml "https://github.com/ExaDev/ooxml.js" "ooxml.js"
34
+ click odf "https://github.com/ExaDev/odf.js" "odf.js"
35
+ click pdfcodec "https://github.com/ExaDev/pdf-codec" "pdf-codec"
36
+ click documents "https://github.com/ExaDev/documents.js" "documents.js"
37
+ click cli "https://github.com/ExaDev/document-cli" "document-cli"
38
+
39
+ style pdfcodec fill:#f9a825,stroke:#333,stroke-width:3px
40
+ ```
41
+
13
42
  ## Getting started
14
43
 
15
44
  Requires Node.js `>=20` and pnpm `11.6.0` (pinned via `packageManager` in `package.json`).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pdf-codec",
3
- "version": "1.2.1",
3
+ "version": "1.3.1",
4
4
  "description": "Hand-written, dependency-minimal PDF codec: parses arbitrary real-world PDFs and generates new ones, built on document-schema.js's LayoutDocument pivot and Zod 4 codecs.",
5
5
  "type": "module",
6
6
  "repository": {