@uurtech/jdf-cli 0.2.1 → 0.2.3

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.
@@ -103,6 +103,7 @@
103
103
  "backgroundColor": { "type": "string" },
104
104
  "textAlign": { "type": "string", "enum": ["left","center","right","justify"] },
105
105
  "lineHeight": { "type": "number" },
106
+ "textIndent": { "type": "number", "description": "First-line indent in the document unit." },
106
107
  "letterSpacing": { "oneOf": [{ "type": "number" }, { "type": "string" }] },
107
108
  "padding": { "oneOf": [{ "type": "number" }, { "type": "string" }, { "$ref": "#/definitions/Margins" }] },
108
109
  "margin": { "oneOf": [{ "type": "number" }, { "type": "string" }, { "$ref": "#/definitions/Margins" }] },
@@ -343,7 +344,17 @@
343
344
  "anyOf": [{ "required": ["resource"] }, { "required": ["src"] }],
344
345
  "properties": {
345
346
  "type": { "const": "image" },
347
+ "id": { "type": "string" },
346
348
  "resource": { "type": "string" }, "src": { "type": "string" }, "alt": { "type": "string" },
349
+ "caption": { "type": "string" }, "captionSource": { "type": "string" },
350
+ "ocr": {
351
+ "type": "object",
352
+ "required": ["blocks"],
353
+ "properties": {
354
+ "language": { "type": "string" }, "source": { "type": "string" }, "created": { "type": "string" },
355
+ "blocks": { "type": "array", "items": { "type": "object", "required": ["text"], "properties": { "text": { "type": "string" }, "confidence": { "type": "number" }, "bbox": { "type": "object", "properties": { "x": { "type": "number" }, "y": { "type": "number" }, "w": { "type": "number" }, "h": { "type": "number" } } } } } }
356
+ }
357
+ },
347
358
  "position": { "$ref": "#/definitions/Position" },
348
359
  "width": { "type": "number" }, "height": { "type": "number" },
349
360
  "fit": { "type": "string", "enum": ["contain","cover","fill","none"] },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uurtech/jdf-cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Command-line tool for the JDF (JSON Document Format) — validate and convert documents.",
5
5
  "license": "MIT",
6
6
  "author": "Ugur Kazdal",
@@ -52,7 +52,8 @@
52
52
  "ajv": "^8.17.1",
53
53
  "ajv-formats": "^3.0.1",
54
54
  "jszip": "^3.10.1",
55
- "pdfjs-dist": "^4.10.38"
55
+ "pdfjs-dist": "^4.10.38",
56
+ "tesseract.js": "^7.0.0"
56
57
  },
57
58
  "devDependencies": {
58
59
  "@jdf/core": "workspace:*",