documents.js 4.3.0 → 4.4.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.
package/README.md CHANGED
@@ -191,7 +191,7 @@ const pdfBytes = docxToPdf(docxBytes, {
191
191
 
192
192
  The tree and the flat `ContentDocument` are one format in two encodings, related by three laws (stated on [document-schema.js#20](https://github.com/ExaDev/document-schema.js/issues/20), proven over this package's real corpus by the bijection suite in `src/convert/bijection.test.ts`): (i) `flattenPackage(assemblePackage(c))` reproduces `c` exactly, up to one declared normalisation (a present-but-empty sheet `embeddedObjects` array normalises to the field absent); (ii) effective-property equality holds universally — a factored and an unfactored serialisation of one document resolve to the same properties; (iii) minting is idempotent — factoring a second time produces the identical styles table.
193
193
 
194
- Three flat-form signals drive the grouping, and all three are reproduced exactly on the way back: `headingLevel`, `list.level`, and — since document-schema.js 4.2.0 — the `constructStart`/`constructEnd` block pair that delimits a fidelity construct (a docx SDT, an ODF field, a tracked-change span, a bookmark, a hyperlink region, a division). `decompose` promotes each marker pair to a construct group carrying the `ConstructDescriptor` and holding the delimited region as its children, decomposed on its own; `flattenPackage` writes the pair back around that region. A construct is a semantic wrapper rather than a container, so it neither disturbs the enclosing heading/list nesting it sits inside nor resets the style chain resolving onto it — content inside a construct still inherits the ambient heading's or section's factored properties, exactly as if the construct were not there. Markers must pair up within one container's block flow: an unmatched `constructEnd`, or a `constructStart` a container never closes, throws document-schema.js's `ConstructMarkerImbalanceError` (carrying its `ConstructMarkerImbalance` payload, so the offending block index is available without parsing the message) rather than being repaired into a plausible tree. The format codecs do not emit markers yet — construct extraction per format is tracked separately on [document-schema.js#22](https://github.com/ExaDev/document-schema.js/issues/22) — but the decompose/flatten boundary itself handles them today, so a caller hand-building marker content needs no change at that boundary specifically. Reaching further than the boundary is a mixed picture, not a blanket guarantee: `buildMarkdownText` refuses a marker with the named `MarkdownConstructUnsupportedError` rather than crashing inside markdown-codec's own writer, which has no arm for either marker kind; building docx/odt bytes back from marker-carrying flat content silently drops the markers, since neither builder reads or writes them yet; and the layout engines (`convertWordprocessingToLayout`, `convertShape`) silently skip a marker block during pagination — harmless there, since a marker carries no content of its own to render.
194
+ Three flat-form signals drive the grouping, and all three are reproduced exactly on the way back: `headingLevel`, `list.level`, and — since document-schema.js 4.2.0 — the `constructStart`/`constructEnd` block pair that delimits a fidelity construct (a docx SDT, an ODF field, a tracked-change span, a bookmark, a hyperlink region, a division). `decompose` promotes each marker pair to a construct group carrying the `ConstructDescriptor` and holding the delimited region as its children, decomposed on its own; `flattenPackage` writes the pair back around that region. A construct is a semantic wrapper rather than a container, so it neither disturbs the enclosing heading/list nesting it sits inside nor resets the style chain resolving onto it — content inside a construct still inherits the ambient heading's or section's factored properties, exactly as if the construct were not there. Markers must pair up within one container's block flow: an unmatched `constructEnd`, or a `constructStart` a container never closes, throws document-schema.js's `ConstructMarkerImbalanceError` (carrying its `ConstructMarkerImbalance` payload, so the offending block index is available without parsing the message) rather than being repaired into a plausible tree. The format codecs do not emit markers yet — construct extraction per format is tracked separately on [document-schema.js#22](https://github.com/ExaDev/document-schema.js/issues/22) — but the decompose/flatten boundary itself handles them today, so a caller hand-building marker content needs no change at that boundary specifically. Reaching further than the boundary is a mixed picture, not a blanket guarantee: `buildMarkdownText` passes markers through to markdown-codec's own bracket-resolving writer, which renders each construct it has a markdown spelling for (a footnote definition, a blockquote division, a titled image's link wrapper) and renders the rest transparently with a diagnostic markdown-codec's own read side emits those pairs, so this package's editor and conversion round trips depend on it; building docx/odt bytes back from marker-carrying flat content silently drops the markers, since neither builder reads or writes them yet; and the layout engines (`convertWordprocessingToLayout`, `convertShape`) silently skip a marker block during pagination — harmless there, since a marker carries no content of its own to render.
195
195
 
196
196
  `assemblePackage` is the one constructor behind every construction site — decompose, then `factorStyles`, the minting pass that hoists property tuples occurring two or more times onto a group-wrapper ref plus a `styles` table entry (deterministic order; `frames`/`sourcePath`/`styleId` are per-node facts and never factor). The transform belongs to `document-schema.js`, which owns both encodings and publishes `assemblePackage`, `decompose`, `flattenPackage`, `factorStyles`, `ConstructMarkerImbalanceError`, and the `PackageChildren` type for any caller composing its own boundary — import them from there, not from this package. documents.js consumes that transform at its own boundary and re-exports none of it; the readers, builders, layout engines, and editors here keep producing and consuming the flat form, so the tree exists only where a `DocumentPackage` is constructed or consumed:
197
197
 
@@ -565,7 +565,7 @@ The package is layered from generic primitives outward to the two conversion dir
565
565
  - **`src/markdown/`** — third adapter family, via `markdown-codec`. `readMarkdownContent` passes `readMarkdownContent`'s (markdown-codec's flat reader, so named since that package's 4.0.0; the bare `readMarkdown` name is now its tree-form `DocumentPackage` reader) result through the math-lowering pass (`math.ts` — markdown-codec's preserved `$$` display blocks and `\( \)` inline spans become two-layer formula blocks, with the document's symbol table seeded from its own prose). `buildMarkdownText` wraps `writeMarkdownContent`, reconstructing markdown math syntax from formula blocks carrying a presentation layer. `text.ts` is the byte↔text boundary. `MarkdownEditor` holds a mutable in-memory `ContentDocument`.
566
566
  - **`src/csv/`** — fourth adapter family, sharing the spreadsheet variant with xlsx/ods. `records.ts` is the RFC 4180 record parser/writer (one shared `quoteCsvField`, also used by the `.odb` CSV exporter); `text.ts` is the byte↔text boundary, rejecting malformed UTF-8; `read.ts` turns records into a spreadsheet `ContentDocument` (first record as verbatim string header, data cells through the same cell-typing heuristic `pdfToOds` uses); `write.ts` turns one sheet of a spreadsheet `ContentDocument` back into records via each cell's `displayText`. TSV is the same format with `{ delimiter: '\t' }` on either side.
567
567
  - **`src/svg/`** — fifth adapter family, sharing the drawing variant with odg. `text.ts` is the byte↔text boundary, rejecting malformed UTF-8; `read.ts` maps the six SVG shape primitives (rect/circle/ellipse/line/polyline/polygon/path) onto a one-page drawing `ContentDocument`, with transform lists composed as 2×3 affines and CSS lengths and the viewBox map resolved into page points; `write.ts` writes the six primitives back out, one shape element each; `path.ts` is the full SVG path-data grammar (M/L/H/V/C/S/Z plus Q/T/A and the relative forms — S/Q/T convert exactly, A is the one bounded approximation at ≤90° per cubic); `transform.ts` parses and composes the transform attribute and classifies the result by frame representability; `units.ts` resolves CSS length units and the viewBox; `paint.ts` resolves fill/stroke presentation attributes and dash styles; `diagnostics.ts` is the shared scope-limit vocabulary.
568
- - **`src/layout/`** — the pure conversion algorithms: `engine.ts` (wordprocessing → layout: flow, line-breaking, pagination), `slides.ts` (presentation → layout: direct placement), `sheets.ts` (spreadsheet → layout: grid, print settings, the first algorithm accepting `AbortSignal`), `drawing.ts` (drawing → layout: vector primitives + shape reuse), `reconstruct.ts` (layout → content: baseline clustering for wordprocessing/presentation, near-1:1 mapping for drawing, gridline-lattice-or-text-clustering for spreadsheet).
568
+ - **`src/layout/`** — the pure conversion algorithms: `engine.ts` (wordprocessing → layout: flow, line-breaking, pagination), `slides.ts` (presentation → layout: direct placement), `sheets.ts` (spreadsheet → layout: grid, print settings, the first algorithm accepting `AbortSignal`), `drawing.ts` (drawing → layout: vector primitives + shape reuse), `reconstruct.ts` (layout → content: baseline clustering for wordprocessing/presentation, near-1:1 mapping for drawing, gridline-lattice-or-text-clustering for spreadsheet; plus the PDF construct surfacing — link reconciliation to `ContentRun.hyperlink` or link constructs, hidden-layer content dropped, anchor/comment and AcroForm contentControl constructs).
569
569
  - **`src/hsqldb/`** — `.odb` decoders, four tiers: `script.ts` (TEXT-script DDL/DML parser), `rowformat.ts`/`cache.ts` (CACHED binary row-store), `binary-script.ts` (BINARY/COMPRESSED whole-script). All import only `document-schema.js` — no odf.js knowledge.
570
570
  - **`src/firebird/`** — Tier 3: gbak logical-backup reader. `reader.ts` (attribute framing + RLE decompression + XDR decoding), `schema.ts`/`data.ts` (table/row walking). No ratified spec — built against Firebird's own engine source.
571
571
  - **`src/odb/`** — decoder-selection and pivot-mapping: `read.ts` routes to the right tier, `spreadsheet.ts`/`csv.ts` map to output formats. `odb/sql/` is the bounded SQL engine, `odb/formula/` is the rpt formula engine, `odb/report/` is the renderer, `odb/values.ts` is shared comparison/aggregation semantics.
@@ -678,10 +678,10 @@ To run a single test file: `pnpm vitest run src/path/to/file.test.ts`.
678
678
  - **OMML read/write are deliberately asymmetric** — the reader covers more (`m:d`, `m:nary`, `m:acc`, `m:bar`, `m:func`, `m:sPre`) because it must read what Word wrote. `docx → odt → docx` round trips keep the mathematics but may change the OMML construct.
679
679
  - **The OMML translator covers exactly what `src/mathml/layout.ts` typesets.** A stretchy fence diverges: PDF stretches it, docx writes it at base size. `munderover` becomes nested `m:limUpp`/`m:limLow` (no operand scope in MathML).
680
680
  - **`sourcePath` traces a `LayoutItem` to its `ContentDocument` origin, but only within one read+layout pass** — not an edit-tracking mechanism. Since the frames fusion it survives as traceability only: the authoritative node↔position association is each content node's own `frames`, stamped at the moment of layout (or of reconstruction) rather than re-matched by string afterwards.
681
- - **`readMarkdownContent` runs markdown-codec's result through the math-lowering pass** — `markdown-codec` already produces a full `ContentDocument`, but it deliberately carries `$$` display blocks and `\( \)` inline spans through as raw LaTeX text (styled paragraphs and marker runs); the pass lowers that LaTeX into two-layer formula blocks so markdown math typesets, edits, and computes like math from any other format (see [LaTeX lowering into the semantic core](#latex-lowering-into-the-semantic-core)).
682
- - **Every markdown construct-mapping gap is a documented `MarkdownDiagnosticCodes` entry** (`md/invented-page-geometry`, `md/nested-emphasis-flattened`, `md/link-title-dropped`, `md/code-block-info-string-dropped`, `md/blockquote-nested-depth`, `md/list-item-block-unlisted`, `md/list-item-multi-block-flattened`, `md/image-unresolved`, `md/raw-html-preserved-as-text`/`md/raw-html-dropped`, `md/front-matter-key-unmapped`, `md/heading-level-clamped`, `md/adjacent-links-merged`, `md/code-span-as-monospace-run`, `md/paragraph-indent-dropped`, `md/list-numid-fallback`, `md/table-cell-formatting-dropped`, `md/table-cell-multi-paragraph-joined`) — never a silent approximation.
681
+ - **`readMarkdownContent` runs markdown-codec's result through the math-lowering pass** — `markdown-codec` already produces a full `ContentDocument`, but it deliberately stops short of lowering math: a `$$` display block arrives as an embedded formula object holding only the verbatim presentation LaTeX, an inline `\( \)` span as a Cambria-Math-marked raw-LaTeX run; the pass lowers that LaTeX into two-layer formula blocks so markdown math typesets, edits, and computes like math from any other format (see [LaTeX lowering into the semantic core](#latex-lowering-into-the-semantic-core)).
682
+ - **Every markdown construct-mapping gap is a documented `MarkdownDiagnosticCodes` entry** (`md/invented-page-geometry`, `md/nested-emphasis-flattened`, `md/link-title-dropped`, `md/blockquote-container-skipped`, `md/list-item-block-unlisted`, `md/image-unresolved`, `md/raw-html-preserved-as-text`/`md/raw-html-dropped`, `md/front-matter-key-unmapped`, `md/heading-level-clamped`, `md/adjacent-links-merged`, `md/code-span-as-monospace-run`, `md/paragraph-indent-dropped`, `md/list-numid-fallback`, `md/table-cell-formatting-dropped`, `md/table-cell-multi-paragraph-joined`) — never a silent approximation. The info-string, multi-block-item, and blockquote-depth gaps that used to be in this list are closed: a fence's language word rides `ContentParagraph.codeLanguage`, item identity rides `ContentListMembership.itemId`, and a blockquote carries a `division` construct pair.
683
683
  - **`buildMarkdownText` throws for non-`'wordprocessing'` `ContentDocument`.**
684
- - **`buildMarkdownText` throws `MarkdownConstructUnsupportedError` for a `constructStart`/`constructEnd` marker** CommonMark/GFM has no spelling for a construct wrapper and, unlike an embedded formula, no plain-text stand-in either (a division's column count or a tracked-change's author has nothing defensible to render as visible text), so this is a refusal rather than a degradation. Named so a caller can branch on it and, for a `constructStart`, read the wrapped `ConstructDescriptor`'s own `kind` (`contentControl`/`field`/`anchor`/`link`/`provenance`/`division`) off `descriptorKind` without parsing the message.
684
+ - **`buildMarkdownText` passes `constructStart`/`constructEnd` markers through to markdown-codec's own writer**, which resolves them as balanced brackets: a construct with a markdown spelling renders as that syntax (a footnote definition, a blockquote division, a titled image's link wrapper), one without renders its extent transparently under a diagnostic. A genuinely unbalanced list still throws — markdown-codec's own `MarkdownUnbalancedConstructMarkersError`, the shared definition of that check. The old `MarkdownConstructUnsupportedError` refusal is gone: markdown-codec's read side now emits marker pairs of its own (blockquotes, titled images), so a writer that refused markers would refuse this package's own editor round trips.
685
685
  - **`decodeMarkdownText` throws on malformed UTF-8** rather than producing U+FFFD.
686
686
  - **The composition engine routes every pair generically** through a declarative primitive registry and minimum-cost pathfinder. `resolveCompositionPlan` finds the minimum-cost route (same-variant bridge < cross-variant transform < via-PDF multi-hop). Named functions are thin forwarders.
687
687
 
@@ -22,6 +22,7 @@ const require_svg_read = require("../svg/read.cjs");
22
22
  const require_svg_write = require("../svg/write.cjs");
23
23
  const require_ports_abort = require("../ports/abort.cjs");
24
24
  const require_layout_reconstruct = require("../layout/reconstruct.cjs");
25
+ const require_convert_pdf_package_tables = require("./pdf-package-tables.cjs");
25
26
  const require_convert_variant_bridges = require("./variant-bridges.cjs");
26
27
  const require_convert_capability = require("./capability.cjs");
27
28
  let ooxml_js = require("ooxml.js");
@@ -237,7 +238,9 @@ function executeFromPdf(target, bytes, options) {
237
238
  const pkg = node.build(content);
238
239
  out = node.encode(pkg);
239
240
  }
240
- options?.onDocument?.((0, document_schema_js.assemblePackage)(content, pages));
241
+ const reported = (0, document_schema_js.assemblePackage)(content, pages);
242
+ require_convert_pdf_package_tables.stampPdfPackageTables(reported, layout);
243
+ options?.onDocument?.(reported);
241
244
  return out;
242
245
  }
243
246
  function buildCompositionGraph() {
@@ -21,6 +21,7 @@ import { readSvgContent } from "../svg/read.js";
21
21
  import { buildSvgText } from "../svg/write.js";
22
22
  import { throwIfAborted } from "../ports/abort.js";
23
23
  import { reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing } from "../layout/reconstruct.js";
24
+ import { stampPdfPackageTables } from "./pdf-package-tables.js";
24
25
  import { drawingToPresentation, presentationToDrawing, presentationToWordprocessing, wordprocessingToPresentation } from "./variant-bridges.js";
25
26
  import { UnsupportedConversionError } from "./capability.js";
26
27
  import { buildXlsxPackageFromContent, decodePackage, encodePackage, readXlsxContent } from "ooxml.js";
@@ -236,7 +237,9 @@ function executeFromPdf(target, bytes, options) {
236
237
  const pkg = node.build(content);
237
238
  out = node.encode(pkg);
238
239
  }
239
- options?.onDocument?.(assemblePackage(content, pages));
240
+ const reported = assemblePackage(content, pages);
241
+ stampPdfPackageTables(reported, layout);
242
+ options?.onDocument?.(reported);
240
243
  return out;
241
244
  }
242
245
  function buildCompositionGraph() {
@@ -0,0 +1,76 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/convert/pdf-package-tables.ts
3
+ function stampPdfPackageTables(pkg, layout) {
4
+ if (layout.destinations !== void 0 || layout.outline !== void 0) {
5
+ const destinations = {};
6
+ for (const destination of layout.destinations ?? []) destinations[destination.name] = {
7
+ kind: "destination",
8
+ pageIndex: destination.pageIndex,
9
+ viewKind: destination.target.kind,
10
+ ...destination.target.leftPt !== void 0 ? { leftPt: destination.target.leftPt } : {},
11
+ ...destination.target.topPt !== void 0 ? { topPt: destination.target.topPt } : {},
12
+ ...destination.target.bottomPt !== void 0 ? { bottomPt: destination.target.bottomPt } : {},
13
+ ...destination.target.rightPt !== void 0 ? { rightPt: destination.target.rightPt } : {},
14
+ ...destination.target.zoom !== void 0 ? { zoom: destination.target.zoom } : {}
15
+ };
16
+ const outlineKeys = [];
17
+ const walkOutline = (items, parentKey) => {
18
+ for (const item of items ?? []) {
19
+ const key = `outline-${String(outlineKeys.length + 1)}`;
20
+ outlineKeys.push(key);
21
+ destinations[key] = {
22
+ kind: "outline",
23
+ title: item.title,
24
+ ...item.destination !== void 0 ? { destination: item.destination } : {},
25
+ ...parentKey !== void 0 ? { parent: parentKey } : {}
26
+ };
27
+ walkOutline(item.children, key);
28
+ }
29
+ };
30
+ walkOutline(layout.outline, void 0);
31
+ pkg.destinations = {
32
+ ...pkg.destinations,
33
+ ...destinations
34
+ };
35
+ }
36
+ if (layout.attachments !== void 0 && layout.attachments.length > 0) pkg.attachments = {
37
+ ...pkg.attachments,
38
+ ...Object.fromEntries(layout.attachments.map((attachment) => [attachment.name, {
39
+ kind: "attachment",
40
+ name: attachment.name,
41
+ ...attachment.description !== void 0 ? { description: attachment.description } : {},
42
+ ...attachment.mimeType !== void 0 ? { mimeType: attachment.mimeType } : {},
43
+ base64: attachment.base64
44
+ }]))
45
+ };
46
+ if (layout.layers !== void 0 && layout.layers.length > 0) pkg.layers = {
47
+ ...pkg.layers,
48
+ ...Object.fromEntries(layout.layers.map((layer) => [layer.name, {
49
+ kind: "layer",
50
+ name: layer.name,
51
+ visible: layer.visible
52
+ }]))
53
+ };
54
+ if (layout.source !== void 0) pkg.source = {
55
+ ...pkg.source,
56
+ ...layout.source
57
+ };
58
+ const definitions = {};
59
+ layout.pages.forEach((page, pageIndex) => {
60
+ (page.annotations ?? []).forEach((annotation, annotIndex) => {
61
+ definitions[`pdf-annot-${String(pageIndex)}-${String(annotIndex)}`] = {
62
+ kind: "comment",
63
+ ...annotation.contents !== void 0 ? { body: annotation.contents } : {},
64
+ ...annotation.author !== void 0 ? { author: annotation.author } : {},
65
+ ...annotation.modifiedIso !== void 0 ? { dateIso: annotation.modifiedIso } : {},
66
+ ...annotation.source !== void 0 ? { source: annotation.source } : {}
67
+ };
68
+ });
69
+ });
70
+ if (Object.keys(definitions).length > 0) pkg.definitions = {
71
+ ...pkg.definitions,
72
+ ...definitions
73
+ };
74
+ }
75
+ //#endregion
76
+ exports.stampPdfPackageTables = stampPdfPackageTables;
@@ -0,0 +1,6 @@
1
+ import { DocumentPackage } from "document-schema.js";
2
+ import { LayoutDocument } from "pdf-codec";
3
+ //#region src/convert/pdf-package-tables.d.ts
4
+ declare function stampPdfPackageTables(pkg: DocumentPackage, layout: LayoutDocument): void;
5
+ //#endregion
6
+ export { stampPdfPackageTables };
@@ -0,0 +1,6 @@
1
+ import { DocumentPackage } from "document-schema.js";
2
+ import { LayoutDocument } from "pdf-codec";
3
+ //#region src/convert/pdf-package-tables.d.ts
4
+ declare function stampPdfPackageTables(pkg: DocumentPackage, layout: LayoutDocument): void;
5
+ //#endregion
6
+ export { stampPdfPackageTables };
@@ -0,0 +1,75 @@
1
+ //#region src/convert/pdf-package-tables.ts
2
+ function stampPdfPackageTables(pkg, layout) {
3
+ if (layout.destinations !== void 0 || layout.outline !== void 0) {
4
+ const destinations = {};
5
+ for (const destination of layout.destinations ?? []) destinations[destination.name] = {
6
+ kind: "destination",
7
+ pageIndex: destination.pageIndex,
8
+ viewKind: destination.target.kind,
9
+ ...destination.target.leftPt !== void 0 ? { leftPt: destination.target.leftPt } : {},
10
+ ...destination.target.topPt !== void 0 ? { topPt: destination.target.topPt } : {},
11
+ ...destination.target.bottomPt !== void 0 ? { bottomPt: destination.target.bottomPt } : {},
12
+ ...destination.target.rightPt !== void 0 ? { rightPt: destination.target.rightPt } : {},
13
+ ...destination.target.zoom !== void 0 ? { zoom: destination.target.zoom } : {}
14
+ };
15
+ const outlineKeys = [];
16
+ const walkOutline = (items, parentKey) => {
17
+ for (const item of items ?? []) {
18
+ const key = `outline-${String(outlineKeys.length + 1)}`;
19
+ outlineKeys.push(key);
20
+ destinations[key] = {
21
+ kind: "outline",
22
+ title: item.title,
23
+ ...item.destination !== void 0 ? { destination: item.destination } : {},
24
+ ...parentKey !== void 0 ? { parent: parentKey } : {}
25
+ };
26
+ walkOutline(item.children, key);
27
+ }
28
+ };
29
+ walkOutline(layout.outline, void 0);
30
+ pkg.destinations = {
31
+ ...pkg.destinations,
32
+ ...destinations
33
+ };
34
+ }
35
+ if (layout.attachments !== void 0 && layout.attachments.length > 0) pkg.attachments = {
36
+ ...pkg.attachments,
37
+ ...Object.fromEntries(layout.attachments.map((attachment) => [attachment.name, {
38
+ kind: "attachment",
39
+ name: attachment.name,
40
+ ...attachment.description !== void 0 ? { description: attachment.description } : {},
41
+ ...attachment.mimeType !== void 0 ? { mimeType: attachment.mimeType } : {},
42
+ base64: attachment.base64
43
+ }]))
44
+ };
45
+ if (layout.layers !== void 0 && layout.layers.length > 0) pkg.layers = {
46
+ ...pkg.layers,
47
+ ...Object.fromEntries(layout.layers.map((layer) => [layer.name, {
48
+ kind: "layer",
49
+ name: layer.name,
50
+ visible: layer.visible
51
+ }]))
52
+ };
53
+ if (layout.source !== void 0) pkg.source = {
54
+ ...pkg.source,
55
+ ...layout.source
56
+ };
57
+ const definitions = {};
58
+ layout.pages.forEach((page, pageIndex) => {
59
+ (page.annotations ?? []).forEach((annotation, annotIndex) => {
60
+ definitions[`pdf-annot-${String(pageIndex)}-${String(annotIndex)}`] = {
61
+ kind: "comment",
62
+ ...annotation.contents !== void 0 ? { body: annotation.contents } : {},
63
+ ...annotation.author !== void 0 ? { author: annotation.author } : {},
64
+ ...annotation.modifiedIso !== void 0 ? { dateIso: annotation.modifiedIso } : {},
65
+ ...annotation.source !== void 0 ? { source: annotation.source } : {}
66
+ };
67
+ });
68
+ });
69
+ if (Object.keys(definitions).length > 0) pkg.definitions = {
70
+ ...pkg.definitions,
71
+ ...definitions
72
+ };
73
+ }
74
+ //#endregion
75
+ export { stampPdfPackageTables };
@@ -12,9 +12,9 @@ declare const DocumentFormatSchema: z.ZodEnum<{
12
12
  ods: "ods";
13
13
  odg: "odg";
14
14
  svg: "svg";
15
- odf: "odf";
16
15
  csv: "csv";
17
16
  markdown: "markdown";
17
+ odf: "odf";
18
18
  pdf: "pdf";
19
19
  }>;
20
20
  type DocumentFormat = z.infer<typeof DocumentFormatSchema>;
@@ -12,9 +12,9 @@ declare const DocumentFormatSchema: z.ZodEnum<{
12
12
  ods: "ods";
13
13
  odg: "odg";
14
14
  svg: "svg";
15
- odf: "odf";
16
15
  csv: "csv";
17
16
  markdown: "markdown";
17
+ odf: "odf";
18
18
  pdf: "pdf";
19
19
  }>;
20
20
  type DocumentFormat = z.infer<typeof DocumentFormatSchema>;
@@ -16,7 +16,8 @@ var PdfItemBase = class {
16
16
  return this.node;
17
17
  }
18
18
  get sourcePath() {
19
- return this.live().sourcePath;
19
+ const node = this.live();
20
+ return node.kind === "internalLink" ? void 0 : node.sourcePath;
20
21
  }
21
22
  remove() {
22
23
  const node = this.live();
@@ -416,6 +417,44 @@ function buildLinkItem(init) {
416
417
  heightPt: init.heightPt
417
418
  };
418
419
  }
420
+ var PdfInternalLinkItem = class extends PdfItemBase {
421
+ kind = "internalLink";
422
+ constructor(container, node) {
423
+ super(container, node, "PdfInternalLinkItem");
424
+ }
425
+ get destination() {
426
+ return this.live().destination;
427
+ }
428
+ set destination(value) {
429
+ this.live().destination = value;
430
+ }
431
+ get xPt() {
432
+ return this.live().xPt;
433
+ }
434
+ set xPt(value) {
435
+ this.live().xPt = value;
436
+ }
437
+ get yPt() {
438
+ return this.live().yPt;
439
+ }
440
+ set yPt(value) {
441
+ this.live().yPt = value;
442
+ }
443
+ get widthPt() {
444
+ return this.live().widthPt;
445
+ }
446
+ set widthPt(value) {
447
+ requireNonNegative(value, "widthPt");
448
+ this.live().widthPt = value;
449
+ }
450
+ get heightPt() {
451
+ return this.live().heightPt;
452
+ }
453
+ set heightPt(value) {
454
+ requireNonNegative(value, "heightPt");
455
+ this.live().heightPt = value;
456
+ }
457
+ };
419
458
  var PdfLinkItem = class extends PdfItemBase {
420
459
  kind = "link";
421
460
  constructor(container, node) {
@@ -460,6 +499,7 @@ function wrapItem(container, node, images) {
460
499
  case "image": return new PdfImageItem(container, node, images);
461
500
  case "rect": return new PdfRectItem(container, node);
462
501
  case "ellipse": return new PdfEllipseItem(container, node);
502
+ case "internalLink": return new PdfInternalLinkItem(container, node);
463
503
  case "line": return new PdfLineItem(container, node);
464
504
  case "path": return new PdfPathItem(container, node);
465
505
  case "link": return new PdfLinkItem(container, node);
@@ -468,6 +508,7 @@ function wrapItem(container, node, images) {
468
508
  //#endregion
469
509
  exports.PdfEllipseItem = PdfEllipseItem;
470
510
  exports.PdfImageItem = PdfImageItem;
511
+ exports.PdfInternalLinkItem = PdfInternalLinkItem;
471
512
  exports.PdfLineItem = PdfLineItem;
472
513
  exports.PdfLinkItem = PdfLinkItem;
473
514
  exports.PdfPathItem = PdfPathItem;
@@ -1,2 +1,2 @@
1
- import { C as wrapItem, S as buildTextItem, _ as buildImageItem, a as PdfItem, b as buildPathItem, c as PdfLinkInit, d as PdfPathItem, f as PdfRectInit, g as buildEllipseItem, h as PdfTextItem, i as PdfImageItem, l as PdfLinkItem, m as PdfTextInit, n as PdfEllipseItem, o as PdfLineInit, p as PdfRectItem, r as PdfImageInit, s as PdfLineItem, t as PdfEllipseInit, u as PdfPathInit, v as buildLineItem, x as buildRectItem, y as buildLinkItem } from "../../item-D9vQKT0T.cjs";
2
- export { PdfEllipseInit, PdfEllipseItem, PdfImageInit, PdfImageItem, PdfItem, PdfLineInit, PdfLineItem, PdfLinkInit, PdfLinkItem, PdfPathInit, PdfPathItem, PdfRectInit, PdfRectItem, PdfTextInit, PdfTextItem, buildEllipseItem, buildImageItem, buildLineItem, buildLinkItem, buildPathItem, buildRectItem, buildTextItem, wrapItem };
1
+ import { C as buildTextItem, S as buildRectItem, _ as buildEllipseItem, a as PdfInternalLinkItem, b as buildLinkItem, c as PdfLineItem, d as PdfPathInit, f as PdfPathItem, g as PdfTextItem, h as PdfTextInit, i as PdfImageItem, l as PdfLinkInit, m as PdfRectItem, n as PdfEllipseItem, o as PdfItem, p as PdfRectInit, r as PdfImageInit, s as PdfLineInit, t as PdfEllipseInit, u as PdfLinkItem, v as buildImageItem, w as wrapItem, x as buildPathItem, y as buildLineItem } from "../../item-DhXpJNAQ.cjs";
2
+ export { PdfEllipseInit, PdfEllipseItem, PdfImageInit, PdfImageItem, PdfInternalLinkItem, PdfItem, PdfLineInit, PdfLineItem, PdfLinkInit, PdfLinkItem, PdfPathInit, PdfPathItem, PdfRectInit, PdfRectItem, PdfTextInit, PdfTextItem, buildEllipseItem, buildImageItem, buildLineItem, buildLinkItem, buildPathItem, buildRectItem, buildTextItem, wrapItem };
@@ -1,2 +1,2 @@
1
- import { C as wrapItem, S as buildTextItem, _ as buildImageItem, a as PdfItem, b as buildPathItem, c as PdfLinkInit, d as PdfPathItem, f as PdfRectInit, g as buildEllipseItem, h as PdfTextItem, i as PdfImageItem, l as PdfLinkItem, m as PdfTextInit, n as PdfEllipseItem, o as PdfLineInit, p as PdfRectItem, r as PdfImageInit, s as PdfLineItem, t as PdfEllipseInit, u as PdfPathInit, v as buildLineItem, x as buildRectItem, y as buildLinkItem } from "../../item-D9vQKT0T.js";
2
- export { PdfEllipseInit, PdfEllipseItem, PdfImageInit, PdfImageItem, PdfItem, PdfLineInit, PdfLineItem, PdfLinkInit, PdfLinkItem, PdfPathInit, PdfPathItem, PdfRectInit, PdfRectItem, PdfTextInit, PdfTextItem, buildEllipseItem, buildImageItem, buildLineItem, buildLinkItem, buildPathItem, buildRectItem, buildTextItem, wrapItem };
1
+ import { C as buildTextItem, S as buildRectItem, _ as buildEllipseItem, a as PdfInternalLinkItem, b as buildLinkItem, c as PdfLineItem, d as PdfPathInit, f as PdfPathItem, g as PdfTextItem, h as PdfTextInit, i as PdfImageItem, l as PdfLinkInit, m as PdfRectItem, n as PdfEllipseItem, o as PdfItem, p as PdfRectInit, r as PdfImageInit, s as PdfLineInit, t as PdfEllipseInit, u as PdfLinkItem, v as buildImageItem, w as wrapItem, x as buildPathItem, y as buildLineItem } from "../../item-DhXpJNAQ.js";
2
+ export { PdfEllipseInit, PdfEllipseItem, PdfImageInit, PdfImageItem, PdfInternalLinkItem, PdfItem, PdfLineInit, PdfLineItem, PdfLinkInit, PdfLinkItem, PdfPathInit, PdfPathItem, PdfRectInit, PdfRectItem, PdfTextInit, PdfTextItem, buildEllipseItem, buildImageItem, buildLineItem, buildLinkItem, buildPathItem, buildRectItem, buildTextItem, wrapItem };
@@ -15,7 +15,8 @@ var PdfItemBase = class {
15
15
  return this.node;
16
16
  }
17
17
  get sourcePath() {
18
- return this.live().sourcePath;
18
+ const node = this.live();
19
+ return node.kind === "internalLink" ? void 0 : node.sourcePath;
19
20
  }
20
21
  remove() {
21
22
  const node = this.live();
@@ -415,6 +416,44 @@ function buildLinkItem(init) {
415
416
  heightPt: init.heightPt
416
417
  };
417
418
  }
419
+ var PdfInternalLinkItem = class extends PdfItemBase {
420
+ kind = "internalLink";
421
+ constructor(container, node) {
422
+ super(container, node, "PdfInternalLinkItem");
423
+ }
424
+ get destination() {
425
+ return this.live().destination;
426
+ }
427
+ set destination(value) {
428
+ this.live().destination = value;
429
+ }
430
+ get xPt() {
431
+ return this.live().xPt;
432
+ }
433
+ set xPt(value) {
434
+ this.live().xPt = value;
435
+ }
436
+ get yPt() {
437
+ return this.live().yPt;
438
+ }
439
+ set yPt(value) {
440
+ this.live().yPt = value;
441
+ }
442
+ get widthPt() {
443
+ return this.live().widthPt;
444
+ }
445
+ set widthPt(value) {
446
+ requireNonNegative(value, "widthPt");
447
+ this.live().widthPt = value;
448
+ }
449
+ get heightPt() {
450
+ return this.live().heightPt;
451
+ }
452
+ set heightPt(value) {
453
+ requireNonNegative(value, "heightPt");
454
+ this.live().heightPt = value;
455
+ }
456
+ };
418
457
  var PdfLinkItem = class extends PdfItemBase {
419
458
  kind = "link";
420
459
  constructor(container, node) {
@@ -459,10 +498,11 @@ function wrapItem(container, node, images) {
459
498
  case "image": return new PdfImageItem(container, node, images);
460
499
  case "rect": return new PdfRectItem(container, node);
461
500
  case "ellipse": return new PdfEllipseItem(container, node);
501
+ case "internalLink": return new PdfInternalLinkItem(container, node);
462
502
  case "line": return new PdfLineItem(container, node);
463
503
  case "path": return new PdfPathItem(container, node);
464
504
  case "link": return new PdfLinkItem(container, node);
465
505
  }
466
506
  }
467
507
  //#endregion
468
- export { PdfEllipseItem, PdfImageItem, PdfLineItem, PdfLinkItem, PdfPathItem, PdfRectItem, PdfTextItem, buildEllipseItem, buildImageItem, buildLineItem, buildLinkItem, buildPathItem, buildRectItem, buildTextItem, wrapItem };
508
+ export { PdfEllipseItem, PdfImageItem, PdfInternalLinkItem, PdfLineItem, PdfLinkItem, PdfPathItem, PdfRectItem, PdfTextItem, buildEllipseItem, buildImageItem, buildLineItem, buildLinkItem, buildPathItem, buildRectItem, buildTextItem, wrapItem };
@@ -1,4 +1,4 @@
1
- import { a as PdfItem, c as PdfLinkInit, d as PdfPathItem, f as PdfRectInit, h as PdfTextItem, i as PdfImageItem, l as PdfLinkItem, m as PdfTextInit, n as PdfEllipseItem, o as PdfLineInit, p as PdfRectItem, r as PdfImageInit, s as PdfLineItem, t as PdfEllipseInit, u as PdfPathInit } from "../../item-D9vQKT0T.cjs";
1
+ import { c as PdfLineItem, d as PdfPathInit, f as PdfPathItem, g as PdfTextItem, h as PdfTextInit, i as PdfImageItem, l as PdfLinkInit, m as PdfRectItem, n as PdfEllipseItem, o as PdfItem, p as PdfRectInit, r as PdfImageInit, s as PdfLineInit, t as PdfEllipseInit, u as PdfLinkItem } from "../../item-DhXpJNAQ.cjs";
2
2
  import { LayoutImageAsset, LayoutPage } from "pdf-codec";
3
3
  //#region src/edit/pdf/page.d.ts
4
4
  interface PageInit {
@@ -1,4 +1,4 @@
1
- import { a as PdfItem, c as PdfLinkInit, d as PdfPathItem, f as PdfRectInit, h as PdfTextItem, i as PdfImageItem, l as PdfLinkItem, m as PdfTextInit, n as PdfEllipseItem, o as PdfLineInit, p as PdfRectItem, r as PdfImageInit, s as PdfLineItem, t as PdfEllipseInit, u as PdfPathInit } from "../../item-D9vQKT0T.js";
1
+ import { c as PdfLineItem, d as PdfPathInit, f as PdfPathItem, g as PdfTextItem, h as PdfTextInit, i as PdfImageItem, l as PdfLinkInit, m as PdfRectItem, n as PdfEllipseItem, o as PdfItem, p as PdfRectInit, r as PdfImageInit, s as PdfLineInit, t as PdfEllipseInit, u as PdfLinkItem } from "../../item-DhXpJNAQ.js";
2
2
  import { LayoutImageAsset, LayoutPage } from "pdf-codec";
3
3
  //#region src/edit/pdf/page.d.ts
4
4
  interface PageInit {
package/dist/index.cjs CHANGED
@@ -395,7 +395,6 @@ Object.defineProperty(exports, "LayoutDocumentSchema", {
395
395
  });
396
396
  exports.MATH_LINT_CODES = require_latex_diagnostics.MATH_LINT_CODES;
397
397
  exports.MarkdownBytesSchema = require_model_bytes.MarkdownBytesSchema;
398
- exports.MarkdownConstructUnsupportedError = require_markdown_write.MarkdownConstructUnsupportedError;
399
398
  exports.MarkdownEditor = require_edit_markdown_editor.MarkdownEditor;
400
399
  exports.MarkdownList = require_edit_markdown_list.MarkdownList;
401
400
  exports.MarkdownParagraph = require_edit_markdown_paragraph.MarkdownParagraph;
@@ -488,6 +487,7 @@ Object.defineProperty(exports, "PdfEncryptedError", {
488
487
  }
489
488
  });
490
489
  exports.PdfImageItem = require_edit_pdf_item.PdfImageItem;
490
+ exports.PdfInternalLinkItem = require_edit_pdf_item.PdfInternalLinkItem;
491
491
  exports.PdfLineItem = require_edit_pdf_item.PdfLineItem;
492
492
  exports.PdfLinkItem = require_edit_pdf_item.PdfLinkItem;
493
493
  exports.PdfPage = require_edit_pdf_page.PdfPage;
package/dist/index.d.cts CHANGED
@@ -53,7 +53,7 @@ import { CreateEmptyOdsPackageOptions } from "./edit/ods/scaffold.cjs";
53
53
  import { BuildOdtPackageOptions, buildOdtPackage } from "./edit/odt/content.cjs";
54
54
  import { CreateOdtOptions, OdtBody, OdtEditor, createOdt, openOdt } from "./edit/odt/editor.cjs";
55
55
  import { CreateEmptyOdtPackageOptions } from "./edit/odt/scaffold.cjs";
56
- import { a as PdfItem, c as PdfLinkInit, d as PdfPathItem, f as PdfRectInit, h as PdfTextItem, i as PdfImageItem, l as PdfLinkItem, m as PdfTextInit, n as PdfEllipseItem, o as PdfLineInit, p as PdfRectItem, r as PdfImageInit, s as PdfLineItem, t as PdfEllipseInit, u as PdfPathInit } from "./item-D9vQKT0T.cjs";
56
+ import { a as PdfInternalLinkItem, c as PdfLineItem, d as PdfPathInit, f as PdfPathItem, g as PdfTextItem, h as PdfTextInit, i as PdfImageItem, l as PdfLinkInit, m as PdfRectItem, n as PdfEllipseItem, o as PdfItem, p as PdfRectInit, r as PdfImageInit, s as PdfLineInit, t as PdfEllipseInit, u as PdfLinkItem } from "./item-DhXpJNAQ.cjs";
57
57
  import { PageInit, PdfPage } from "./edit/pdf/page.cjs";
58
58
  import { CreatePdfOptions, PdfEditor, createPdf, openPdf } from "./edit/pdf/editor.cjs";
59
59
  import { BuildPptxPackageOptions, buildPptxPackage } from "./edit/pptx/content.cjs";
@@ -93,7 +93,7 @@ import { readOdgContent } from "./odf/odg/read.cjs";
93
93
  import { readOdfEmbeddedFormula, readOdfFormulaContent } from "./odf/formula/read.cjs";
94
94
  import { decodeMarkdownText, encodeMarkdownText } from "./markdown/text.cjs";
95
95
  import { readMarkdownContent } from "./markdown/read.cjs";
96
- import { MarkdownConstructUnsupportedError, buildMarkdownText } from "./markdown/write.cjs";
96
+ import { buildMarkdownText } from "./markdown/write.cjs";
97
97
  import { SvgInvalidUtf8Error, decodeSvgText, encodeSvgText } from "./svg/text.cjs";
98
98
  import { ReadSvgContentOptions, SvgMissingRootElementError, readSvgContent } from "./svg/read.cjs";
99
99
  import { BuildSvgTextOptions, SvgMultiPageNotSpecifiedError, SvgPageNotFoundError, SvgUnsupportedDocumentKindError, buildSvgText } from "./svg/write.cjs";
@@ -130,4 +130,4 @@ import { Alignment, Box, COLOR_BLACK, CellPosition, CellRange, Color as LayoutCo
130
130
  import { FontFaceParseError, FontRegistry, FontRegistryOptions, FontSubstitution, LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentSchema, LayoutEllipse, LayoutImage, LayoutImageAsset, LayoutItem, LayoutLine, LayoutLink, LayoutPage, LayoutPath, LayoutPathSegment, LayoutRect, LayoutSubpath, LayoutText, LoadedMathFont, MathFont, MathFontDescriptorMetrics, NOOP_DIAGNOSTIC_SINK, PdfDiagnostic, PdfDiagnosticSeverity, PdfDiagnosticSink, PdfEncryptedError, PdfParseError, ProvidedFont, ReadPdfOptions, ResolvedFace, WinAnsiSubstitution, WritePdfOptions, createFontMeasurer, createFontRegistry, createStandardFontMeasurer, loadMathFont, pdfCodec, readFontFace as describeFontFace, readPdf, writePdf } from "pdf-codec";
131
131
  import { Attribute, AttributeSchema, BinaryPart, BinaryPartSchema, Comment, CommentSchema, CompactAttrPairs, CompactPackage, CompactPackageSchema, CompactPart, CompactPartSchema, CompactXmlNode, CompactXmlNodeSchema, DefinedName, DefinedNameSchema, Footnote, FootnoteSchema, NumberingDefinition, NumberingDefinitionSchema, NumberingDefinitions, NumberingLevel, NumberingLevelSchema, Package, PackageSchema, Part, PartSchema, Relationship, XmlCdata, XmlCdataSchema, XmlComment, XmlCommentSchema, XmlDeclaration, XmlDeclarationSchema, XmlElement, XmlElementSchema, XmlNode, XmlNodeSchema, XmlPart, XmlPartSchema, XmlPi, XmlPiSchema, XmlText, XmlTextSchema, attr, base64ToBytes, buildXlsxPackageFromContent as buildXlsxPackage, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, elementsWithTag, encodeCompactPackage, encodePackage, fromCompact, isCompactXmlNode, isXmlNode, packageCodec, parsePackage, parseXml, readXlsxContent, resolveRelationships, rootElement, serializePackage, textContent as textContent$1, toCompact, unzipPackage, walk, xmlCodec, zipPackage } from "ooxml.js";
132
132
  import { OdbComponentInfo, OdbConnectionInfo, OdbForm, OdbFormControl, OdbFormDefinition, OdbInventory, OdbQueryInfo, OdbReport, OdbReportBand, OdbReportElement, OdbReportFunction, OdbReportGroup, readOdbForm, readOdbInventory, readOdbReport, resolveOdbComponent } from "odf.js";
133
- export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, type BuildCsvTextOptions, type BuildDocxPackageOptions, type BuildOdgPackageOptions, type BuildOdpPackageOptions, type BuildOdsPackageOptions, type BuildOdtPackageOptions, type BuildPptxPackageOptions, type BuildSvgTextOptions, COLOR_BLACK, type CellPosition, type CellRange, type CellTypeDeclineReason, type CellTypeInference, type CellTypeInferenceResult, type CellTypeInferenceSink, type CellTypeRule, type ClockPort, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type CompositionHop, type ContentBlock, ContentBlockSchema, type ContentCellValue, ContentCellValueSchema, type ContentDocument, type ContentDocumentJson, ContentDocumentSchema, type ContentDrawPage, ContentDrawPageSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentPathPoint, ContentPathPointSchema, type ContentPathSegment, ContentPathSegmentSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStroke, ContentStrokeSchema, type ContentSubpath, ContentSubpathSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type ContentVector, ContentVectorSchema, type ConversionOptions, type ConversionPlan, type ConversionRequest, type ConversionResult, type CreateDocxOptions, type CreateEmptyDocxPackageOptions, type CreateEmptyOdgPackageOptions, type CreateEmptyOdpPackageOptions, type CreateEmptyOdsPackageOptions, type CreateEmptyOdtPackageOptions, type CreateEmptyPptxPackageOptions, type CreateMarkdownEditorOptions, type CreateOdgOptions, type CreateOdpOptions, type CreateOdsOptions, type CreateOdtOptions, type CreatePdfOptions, type CreatePptxOptions, CsvBytesSchema, CsvInvalidUtf8Error, CsvParseError, type CsvReadOptions, CsvSheetNotFoundError, CsvSheetNotSpecifiedError, CsvUnsupportedDocumentKindError, type CsvWriteOptions, DEFAULT_LAYOUT_FONT, DOCUMENT_FORMATS, type DefinedName, DefinedNameSchema, type Diagnostic, type DocumentBridgeOptions, type DocumentConverter, type DocumentFontRegistryOptions, type DocumentFormat, DocumentFormatSchema, type DocumentJsonResult, type DocumentPackage, type DocumentPackageJson, DocumentPackageSchema, type DocumentPayload, type DocumentSchemaKind, type DocumentToPdfOptions, type DocxBody, DocxBytesSchema, DocxEditor, type DocxExtras, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DocxVerticalMerge, type DrawingLayoutOptions, type DrawingLayoutResult, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, type FirebirdBackupSummary, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, type FontFace, FontFaceParseError, type FontRegistry, type FontRegistryOptions, type FontSourcePackage, type FontSubstitution, type Footnote, FootnoteSchema, type GridLattice, type HsqldbBinaryScript, HsqldbBinaryScriptParseError, type HsqldbColumn, type HsqldbDecodeOptions, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, type HsqldbTable, LATEX_DIAGNOSTIC_CODES, LAYOUT_FORMAT_VERSION, type LatexDiagnostic, type LatexDiagnosticCode, type LatexDiagnosticSink, type LatexFormulaOptions, type LatexFormulaResult, type LatexLoweringResult, type LayoutColor, type LayoutDocument, LayoutDocumentSchema, type LayoutEllipse, type LayoutFont, type LayoutFormulaOptions, type LayoutImage, type LayoutImageAsset, type LayoutItem, type LayoutLine, type LayoutLink, type LayoutMetadata, type LayoutPage, type LayoutPath, type LayoutPathSegment, type LayoutRect, type LayoutSubpath, type LayoutText, type LoadedMathFont, type LowerLatexOptions, MATH_LINT_CODES, type Margins, type MarkdownBody, MarkdownBytesSchema, MarkdownConstructUnsupportedError, MarkdownEditor, MarkdownList, type MarkdownListInit, type MarkdownMathLoweringOptions, MarkdownParagraph, type ParagraphInit as MarkdownParagraphInit, type MarkdownRenderDiagnostic, type MarkdownRenderDiagnosticCode, MarkdownRenderDiagnosticCodes, type MarkdownRenderDiagnosticSeverity, type MarkdownRenderDiagnosticSink, MarkdownRun, type RunInit as MarkdownRunInit, MarkdownTable, MarkdownTableCell, type TableInit as MarkdownTableInit, MarkdownTableRow, type MathAssembledGlyphs, type MathBox, type MathColor, type MathDiagnostic, type MathDiagnosticKind, type MathFont, type MathFontDescriptorMetrics, type MathFontMetrics, type MathGlyphMetrics, type MathGlyphPlacement, type MathGlyphRun, type MathLayoutItem, type MathLayoutResult, type MathLintCode, type MathLintDiagnostic, type MathMlAttribute, type MathMlElement, type MathMlNode, type MathMlText, type MathRule, type MathStretchAxis, type MathStretchGlyph, type MathStretchResult, type MathStroke, type MathVariant, type MetadataOverrides, NOOP_DIAGNOSTIC_SINK, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, type OdbComponentInfo, type OdbConnectionInfo, type OdbConversionOptions, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, OdbNoEmbeddedDataSourceError, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportContentOptions, OdbReportDataSourceError, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, OdbReportNotSpecifiedError, type OdbReportToDocxOptions, type OdbReportToOdtOptions, OdbTableNotFoundError, OdbTableNotSpecifiedError, type OdbToCsvOptions, type OdbUnsupportedFormat, OdbUnsupportedFormatError, OdfEmbeddedFontError, OdgBoxVector, type BoxVectorInit as OdgBoxVectorInit, OdgBytesSchema, OdgEditor, OdgLineVector, type LineVectorInit as OdgLineVectorInit, OdgPage, type PageImageInit as OdgPageImageInit, OdgPathVector, type PathVectorInit as OdgPathVectorInit, type TextBoxInit as OdgTextBoxInit, type OdgVector, type OdgVectorKind, type OdmToPdfOptions, OdmUnresolvedSectionError, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, type SlideImageInit as OdpSlideImageInit, type SlideTableInit as OdpSlideTableInit, type TextBoxInit$1 as OdpTextBoxInit, OdsBytesSchema, OdsCell, OdsEditor, OdsSheet, type OdtBody, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit$1 as OdtParagraphInit, OdtRun, type RunInit$1 as OdtRunInit, OdtTable, OdtTableCell, type TableInit$1 as OdtTableInit, OdtTableRow, type OmmlDiagnostic, type OmmlDiagnosticKind, type OmmlReadResult, type OmmlWriteResult, OoxmlEmbeddedFontError, type OperatorProperties, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageInit, type PageSize, type Part, PartSchema, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEditor, type PdfEllipseInit, PdfEllipseItem, PdfEncryptedError, type PdfImageInit, PdfImageItem, type PdfItem, type PdfLineInit, PdfLineItem, type PdfLinkInit, PdfLinkItem, PdfPage, PdfParseError, type PdfPathInit, PdfPathItem, type PdfRectInit, PdfRectItem, type PdfTextInit, PdfTextItem, type PdfToDocumentOptions, type PositionedFormula, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, type PptxTableInit, PptxTableRow, type PresentationLayoutResult, type ProvidedFont, type ReadCsvContentOptions, type ReadDocumentMetadataOptions, type ReadDocxContentOptions, type ReadFirebirdBackupResult, type ReadPdfOptions, type ReadSvgContentOptions, type ReconstructOptions, type Relationship, type RenderMarkdownOptions, type ResolvedFace, type RptAggregateFunction, type RptBandDefinition, type RptBandInstance, type RptBandKind, type RptFormula, RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, type RptGroupDefinition, type RptNamedFunctionDefinition, type RptReference, type RptReportDefinition, type RptReportRun, RptReportStructureError, type RptScope, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SVG_DIAGNOSTIC_CODES, type SetDocumentMetadataOptions, type SheetsLayoutOptions, type SlideImageInit$1 as SlideImageInit, type SlideTableInit$1 as SlideTableInit, type SlidesLayoutOptions, type SpreadsheetLayoutResult, type SqlAggregateArgument, type SqlAggregateFunction, type SqlColumnRef, type SqlComparisonOperator, type SqlLiteral, type SqlNameRef, type SqlOperand, type SqlOrderByTerm, type SqlPredicate, type SqlPunctuation, type SqlResultSet, type SqlSelectItem, type SqlSelectStatement, type SqlSortDirection, type SqlToken, SvgBytesSchema, type SvgDiagnostic, type SvgDiagnosticCode, type SvgDiagnosticSink, SvgInvalidUtf8Error, SvgMissingRootElementError, SvgMultiPageNotSpecifiedError, SvgPageNotFoundError, type SvgReadOptions, SvgUnsupportedDocumentKindError, type SvgWriteOptions, type TextBoxInit$2 as TextBoxInit, type UnifiedConversionOptions, UnrecognizedDocumentSchemaError, UnsupportedFontSourceFormatError, UnsupportedPackageFormatError, type WinAnsiSubstitution, type WordprocessingLayoutResult, type WritePdfOptions, XlsxBytesSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyMathVariant, attr, base64ToBytes, buildCsvText, buildDocumentBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildSvgText, buildXlsxPackage, buildXml, bytesToBase64, cellReference, childrenWithTag, collectOfficeMathElements, columnIndexToLetters, columnLettersToIndex, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDocument, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createMarkdownEditor, createOdg, createOdp, createOds, createOdt, createPdf, createPptx, createStandardFontMeasurer, csvMarkdownCodec, csvPdfCodec, csvToMarkdown, csvToOds, csvToPdf, csvToXlsx, decodeCompactPackage, decodeCsvText, decodeDocumentPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodeOdbPackage, decodePackage, decodeSvgText, deobfuscateEmbeddedFont, deriveFontKey, describeFontFace, detectGridLattice, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, docxToPptx, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, encodeCompactPackage, encodeCsvText, encodeDocumentPackage, encodeMarkdownText, encodePackage, encodeSvgText, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, extractSourceFontsForFormat, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, latexToFormula, layoutDocumentFromPackage, layoutFormula, lintMathCoherence, loadMathFont, localName, looksLikeSfnt, lowerLatex, lowerMarkdownMath, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToCsv, markdownToDocx, markdownToOdt, markdownToPdf, markdownToXlsx, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbReportToDocx, odbReportToOdt, odbReportToPdf, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgSvgCodec, odgToPdf, odgToSvg, odmToPdf, odpPdfCodec, odpPptxCodec, odpToOdt, odpToPdf, odpToPptx, odsCsvCodec, odsPdfCodec, odsToCsv, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToOdp, odtToPdf, openDocx, openMarkdown, openOdg, openOdp, openOds, openOdt, openPdf, openPptx, operatorProperties, packageCodec, parseCellReference, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRangeReference, parseRptFormula, parseSelect, parseXml, pdfCodec, pdfToCsv, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pdfToSvg, pdfToXlsx, pptxPdfCodec, pptxToDocx, pptxToOdp, pptxToPdf, rangeReference, readCsvContent, readDocumentMetadata, readDocxContent, readDocxExtras, readFirebirdBackup, readMarkdownContent, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptxContent, readSvgContent, readXlsxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderContentDocumentToMarkdown, renderOdbReportContent, resolveCompositionPlan, resolveMetadataTimestamps, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, runRptReport, schemaUriFor, serializePackage, setDocumentMetadata, svgPdfCodec, svgToOdg, svgToPdf, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writePdf, xlsxCsvCodec, xlsxMarkdownCodec, xlsxPdfCodec, xlsxToCsv, xlsxToMarkdown, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
133
+ export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, type BuildCsvTextOptions, type BuildDocxPackageOptions, type BuildOdgPackageOptions, type BuildOdpPackageOptions, type BuildOdsPackageOptions, type BuildOdtPackageOptions, type BuildPptxPackageOptions, type BuildSvgTextOptions, COLOR_BLACK, type CellPosition, type CellRange, type CellTypeDeclineReason, type CellTypeInference, type CellTypeInferenceResult, type CellTypeInferenceSink, type CellTypeRule, type ClockPort, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type CompositionHop, type ContentBlock, ContentBlockSchema, type ContentCellValue, ContentCellValueSchema, type ContentDocument, type ContentDocumentJson, ContentDocumentSchema, type ContentDrawPage, ContentDrawPageSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentPathPoint, ContentPathPointSchema, type ContentPathSegment, ContentPathSegmentSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStroke, ContentStrokeSchema, type ContentSubpath, ContentSubpathSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type ContentVector, ContentVectorSchema, type ConversionOptions, type ConversionPlan, type ConversionRequest, type ConversionResult, type CreateDocxOptions, type CreateEmptyDocxPackageOptions, type CreateEmptyOdgPackageOptions, type CreateEmptyOdpPackageOptions, type CreateEmptyOdsPackageOptions, type CreateEmptyOdtPackageOptions, type CreateEmptyPptxPackageOptions, type CreateMarkdownEditorOptions, type CreateOdgOptions, type CreateOdpOptions, type CreateOdsOptions, type CreateOdtOptions, type CreatePdfOptions, type CreatePptxOptions, CsvBytesSchema, CsvInvalidUtf8Error, CsvParseError, type CsvReadOptions, CsvSheetNotFoundError, CsvSheetNotSpecifiedError, CsvUnsupportedDocumentKindError, type CsvWriteOptions, DEFAULT_LAYOUT_FONT, DOCUMENT_FORMATS, type DefinedName, DefinedNameSchema, type Diagnostic, type DocumentBridgeOptions, type DocumentConverter, type DocumentFontRegistryOptions, type DocumentFormat, DocumentFormatSchema, type DocumentJsonResult, type DocumentPackage, type DocumentPackageJson, DocumentPackageSchema, type DocumentPayload, type DocumentSchemaKind, type DocumentToPdfOptions, type DocxBody, DocxBytesSchema, DocxEditor, type DocxExtras, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DocxVerticalMerge, type DrawingLayoutOptions, type DrawingLayoutResult, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, type FirebirdBackupSummary, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, type FontFace, FontFaceParseError, type FontRegistry, type FontRegistryOptions, type FontSourcePackage, type FontSubstitution, type Footnote, FootnoteSchema, type GridLattice, type HsqldbBinaryScript, HsqldbBinaryScriptParseError, type HsqldbColumn, type HsqldbDecodeOptions, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, type HsqldbTable, LATEX_DIAGNOSTIC_CODES, LAYOUT_FORMAT_VERSION, type LatexDiagnostic, type LatexDiagnosticCode, type LatexDiagnosticSink, type LatexFormulaOptions, type LatexFormulaResult, type LatexLoweringResult, type LayoutColor, type LayoutDocument, LayoutDocumentSchema, type LayoutEllipse, type LayoutFont, type LayoutFormulaOptions, type LayoutImage, type LayoutImageAsset, type LayoutItem, type LayoutLine, type LayoutLink, type LayoutMetadata, type LayoutPage, type LayoutPath, type LayoutPathSegment, type LayoutRect, type LayoutSubpath, type LayoutText, type LoadedMathFont, type LowerLatexOptions, MATH_LINT_CODES, type Margins, type MarkdownBody, MarkdownBytesSchema, MarkdownEditor, MarkdownList, type MarkdownListInit, type MarkdownMathLoweringOptions, MarkdownParagraph, type ParagraphInit as MarkdownParagraphInit, type MarkdownRenderDiagnostic, type MarkdownRenderDiagnosticCode, MarkdownRenderDiagnosticCodes, type MarkdownRenderDiagnosticSeverity, type MarkdownRenderDiagnosticSink, MarkdownRun, type RunInit as MarkdownRunInit, MarkdownTable, MarkdownTableCell, type TableInit as MarkdownTableInit, MarkdownTableRow, type MathAssembledGlyphs, type MathBox, type MathColor, type MathDiagnostic, type MathDiagnosticKind, type MathFont, type MathFontDescriptorMetrics, type MathFontMetrics, type MathGlyphMetrics, type MathGlyphPlacement, type MathGlyphRun, type MathLayoutItem, type MathLayoutResult, type MathLintCode, type MathLintDiagnostic, type MathMlAttribute, type MathMlElement, type MathMlNode, type MathMlText, type MathRule, type MathStretchAxis, type MathStretchGlyph, type MathStretchResult, type MathStroke, type MathVariant, type MetadataOverrides, NOOP_DIAGNOSTIC_SINK, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, type OdbComponentInfo, type OdbConnectionInfo, type OdbConversionOptions, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, OdbNoEmbeddedDataSourceError, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportContentOptions, OdbReportDataSourceError, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, OdbReportNotSpecifiedError, type OdbReportToDocxOptions, type OdbReportToOdtOptions, OdbTableNotFoundError, OdbTableNotSpecifiedError, type OdbToCsvOptions, type OdbUnsupportedFormat, OdbUnsupportedFormatError, OdfEmbeddedFontError, OdgBoxVector, type BoxVectorInit as OdgBoxVectorInit, OdgBytesSchema, OdgEditor, OdgLineVector, type LineVectorInit as OdgLineVectorInit, OdgPage, type PageImageInit as OdgPageImageInit, OdgPathVector, type PathVectorInit as OdgPathVectorInit, type TextBoxInit as OdgTextBoxInit, type OdgVector, type OdgVectorKind, type OdmToPdfOptions, OdmUnresolvedSectionError, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, type SlideImageInit as OdpSlideImageInit, type SlideTableInit as OdpSlideTableInit, type TextBoxInit$1 as OdpTextBoxInit, OdsBytesSchema, OdsCell, OdsEditor, OdsSheet, type OdtBody, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit$1 as OdtParagraphInit, OdtRun, type RunInit$1 as OdtRunInit, OdtTable, OdtTableCell, type TableInit$1 as OdtTableInit, OdtTableRow, type OmmlDiagnostic, type OmmlDiagnosticKind, type OmmlReadResult, type OmmlWriteResult, OoxmlEmbeddedFontError, type OperatorProperties, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageInit, type PageSize, type Part, PartSchema, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEditor, type PdfEllipseInit, PdfEllipseItem, PdfEncryptedError, type PdfImageInit, PdfImageItem, PdfInternalLinkItem, type PdfItem, type PdfLineInit, PdfLineItem, type PdfLinkInit, PdfLinkItem, PdfPage, PdfParseError, type PdfPathInit, PdfPathItem, type PdfRectInit, PdfRectItem, type PdfTextInit, PdfTextItem, type PdfToDocumentOptions, type PositionedFormula, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, type PptxTableInit, PptxTableRow, type PresentationLayoutResult, type ProvidedFont, type ReadCsvContentOptions, type ReadDocumentMetadataOptions, type ReadDocxContentOptions, type ReadFirebirdBackupResult, type ReadPdfOptions, type ReadSvgContentOptions, type ReconstructOptions, type Relationship, type RenderMarkdownOptions, type ResolvedFace, type RptAggregateFunction, type RptBandDefinition, type RptBandInstance, type RptBandKind, type RptFormula, RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, type RptGroupDefinition, type RptNamedFunctionDefinition, type RptReference, type RptReportDefinition, type RptReportRun, RptReportStructureError, type RptScope, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SVG_DIAGNOSTIC_CODES, type SetDocumentMetadataOptions, type SheetsLayoutOptions, type SlideImageInit$1 as SlideImageInit, type SlideTableInit$1 as SlideTableInit, type SlidesLayoutOptions, type SpreadsheetLayoutResult, type SqlAggregateArgument, type SqlAggregateFunction, type SqlColumnRef, type SqlComparisonOperator, type SqlLiteral, type SqlNameRef, type SqlOperand, type SqlOrderByTerm, type SqlPredicate, type SqlPunctuation, type SqlResultSet, type SqlSelectItem, type SqlSelectStatement, type SqlSortDirection, type SqlToken, SvgBytesSchema, type SvgDiagnostic, type SvgDiagnosticCode, type SvgDiagnosticSink, SvgInvalidUtf8Error, SvgMissingRootElementError, SvgMultiPageNotSpecifiedError, SvgPageNotFoundError, type SvgReadOptions, SvgUnsupportedDocumentKindError, type SvgWriteOptions, type TextBoxInit$2 as TextBoxInit, type UnifiedConversionOptions, UnrecognizedDocumentSchemaError, UnsupportedFontSourceFormatError, UnsupportedPackageFormatError, type WinAnsiSubstitution, type WordprocessingLayoutResult, type WritePdfOptions, XlsxBytesSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyMathVariant, attr, base64ToBytes, buildCsvText, buildDocumentBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildSvgText, buildXlsxPackage, buildXml, bytesToBase64, cellReference, childrenWithTag, collectOfficeMathElements, columnIndexToLetters, columnLettersToIndex, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDocument, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createMarkdownEditor, createOdg, createOdp, createOds, createOdt, createPdf, createPptx, createStandardFontMeasurer, csvMarkdownCodec, csvPdfCodec, csvToMarkdown, csvToOds, csvToPdf, csvToXlsx, decodeCompactPackage, decodeCsvText, decodeDocumentPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodeOdbPackage, decodePackage, decodeSvgText, deobfuscateEmbeddedFont, deriveFontKey, describeFontFace, detectGridLattice, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, docxToPptx, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, encodeCompactPackage, encodeCsvText, encodeDocumentPackage, encodeMarkdownText, encodePackage, encodeSvgText, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, extractSourceFontsForFormat, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, latexToFormula, layoutDocumentFromPackage, layoutFormula, lintMathCoherence, loadMathFont, localName, looksLikeSfnt, lowerLatex, lowerMarkdownMath, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToCsv, markdownToDocx, markdownToOdt, markdownToPdf, markdownToXlsx, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbReportToDocx, odbReportToOdt, odbReportToPdf, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgSvgCodec, odgToPdf, odgToSvg, odmToPdf, odpPdfCodec, odpPptxCodec, odpToOdt, odpToPdf, odpToPptx, odsCsvCodec, odsPdfCodec, odsToCsv, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToOdp, odtToPdf, openDocx, openMarkdown, openOdg, openOdp, openOds, openOdt, openPdf, openPptx, operatorProperties, packageCodec, parseCellReference, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRangeReference, parseRptFormula, parseSelect, parseXml, pdfCodec, pdfToCsv, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pdfToSvg, pdfToXlsx, pptxPdfCodec, pptxToDocx, pptxToOdp, pptxToPdf, rangeReference, readCsvContent, readDocumentMetadata, readDocxContent, readDocxExtras, readFirebirdBackup, readMarkdownContent, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptxContent, readSvgContent, readXlsxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderContentDocumentToMarkdown, renderOdbReportContent, resolveCompositionPlan, resolveMetadataTimestamps, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, runRptReport, schemaUriFor, serializePackage, setDocumentMetadata, svgPdfCodec, svgToOdg, svgToPdf, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writePdf, xlsxCsvCodec, xlsxMarkdownCodec, xlsxPdfCodec, xlsxToCsv, xlsxToMarkdown, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };