@cj-tech-master/excelts 9.5.4 → 9.5.5
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/browser/modules/archive/compression/streaming-compress.browser.js +29 -0
- package/dist/browser/modules/archive/compression/streaming-compress.js +9 -0
- package/dist/browser/modules/archive/compression/worker-pool/pool.browser.js +26 -1
- package/dist/browser/modules/archive/fs/archive-file.d.ts +8 -5
- package/dist/browser/modules/archive/fs/archive-file.js +78 -16
- package/dist/browser/modules/archive/unzip/stream.browser.js +43 -2
- package/dist/browser/modules/excel/chart/chart-ex-builder.js +7 -2
- package/dist/browser/modules/excel/chart/chart-ex-renderer.js +4 -9
- package/dist/browser/modules/excel/chart/chart-ex-types.d.ts +0 -12
- package/dist/browser/modules/excel/chart/chart.d.ts +1 -5
- package/dist/browser/modules/excel/chart/chart.js +1 -7
- package/dist/browser/modules/excel/chart/types.d.ts +0 -6
- package/dist/browser/modules/excel/stream/workbook-reader.browser.js +25 -1
- package/dist/browser/modules/excel/stream/workbook-reader.js +9 -0
- package/dist/browser/modules/excel/stream/workbook-writer.browser.d.ts +40 -0
- package/dist/browser/modules/excel/stream/workbook-writer.browser.js +228 -13
- package/dist/browser/modules/excel/utils/string-buf.d.ts +5 -26
- package/dist/browser/modules/excel/utils/string-buf.js +4 -81
- package/dist/browser/modules/excel/workbook.browser.js +135 -25
- package/dist/browser/modules/excel/xlsx/xform/chart/chart-space-xform.js +6 -20
- package/dist/browser/modules/excel/xlsx/xlsx.browser.d.ts +19 -9
- package/dist/browser/modules/excel/xlsx/xlsx.browser.js +32 -8
- package/dist/browser/modules/excel/xlsx/xlsx.d.ts +10 -2
- package/dist/browser/modules/excel/xlsx/xlsx.js +9 -1
- package/dist/browser/modules/pdf/excel-bridge.d.ts +30 -1
- package/dist/browser/modules/pdf/excel-bridge.js +32 -0
- package/dist/browser/modules/pdf/font/metrics.d.ts +3 -52
- package/dist/browser/modules/pdf/font/metrics.js +3 -237
- package/dist/browser/modules/pdf/index.d.ts +1 -1
- package/dist/browser/modules/pdf/index.js +1 -1
- package/dist/browser/modules/pdf/render-layout-to-pdf.d.ts +66 -0
- package/dist/browser/modules/pdf/render-layout-to-pdf.js +647 -0
- package/dist/browser/modules/pdf/word-bridge.d.ts +80 -12
- package/dist/browser/modules/pdf/word-bridge.js +122 -274
- package/dist/browser/modules/stream/index.base.d.ts +2 -0
- package/dist/browser/modules/stream/index.base.js +2 -1
- package/dist/browser/modules/stream/internal/sink-adapter.d.ts +65 -0
- package/dist/browser/modules/stream/internal/sink-adapter.js +198 -0
- package/dist/browser/modules/stream/pull-stream.d.ts +19 -2
- package/dist/browser/modules/stream/pull-stream.js +51 -5
- package/dist/browser/modules/stream/types.d.ts +13 -1
- package/dist/browser/modules/word/advanced/diff.d.ts +61 -0
- package/dist/browser/modules/word/advanced/diff.js +167 -0
- package/dist/browser/modules/word/advanced/drawing-shapes.d.ts +269 -0
- package/dist/browser/modules/word/advanced/drawing-shapes.js +268 -0
- package/dist/browser/modules/word/advanced/field-engine.d.ts +43 -0
- package/dist/browser/modules/word/advanced/field-engine.js +1225 -0
- package/dist/browser/modules/word/advanced/glossary.d.ts +86 -0
- package/dist/browser/modules/word/advanced/glossary.js +79 -0
- package/dist/browser/modules/word/advanced/math-convert.d.ts +30 -0
- package/dist/browser/modules/word/advanced/math-convert.js +595 -0
- package/dist/browser/modules/word/advanced/ole-objects.d.ts +115 -0
- package/dist/browser/modules/word/advanced/ole-objects.js +271 -0
- package/dist/browser/modules/word/advanced/style-map.d.ts +105 -0
- package/dist/browser/modules/word/advanced/style-map.js +322 -0
- package/dist/browser/modules/word/advanced/validation.d.ts +56 -0
- package/dist/browser/modules/word/advanced/validation.js +1065 -0
- package/dist/browser/modules/word/advanced/vba-project.d.ts +91 -0
- package/dist/browser/modules/word/advanced/vba-project.js +265 -0
- package/dist/browser/modules/word/bridge/excel-bridge.d.ts +127 -0
- package/dist/browser/modules/word/bridge/excel-bridge.js +980 -0
- package/dist/browser/modules/word/builder/document-handle.d.ts +151 -0
- package/dist/browser/modules/word/builder/document-handle.js +664 -0
- package/dist/browser/modules/word/builder/paragraph-builders.d.ts +61 -0
- package/dist/browser/modules/word/builder/paragraph-builders.js +90 -0
- package/dist/browser/modules/word/builder/run-builders.d.ts +374 -0
- package/dist/browser/modules/word/builder/run-builders.js +600 -0
- package/dist/browser/modules/word/builder/table-builders.d.ts +23 -0
- package/dist/browser/modules/word/builder/table-builders.js +45 -0
- package/dist/browser/modules/word/constants.d.ts +39 -1
- package/dist/browser/modules/word/constants.js +109 -1
- package/dist/browser/modules/word/convert/conversion-ir.d.ts +210 -0
- package/dist/browser/modules/word/convert/conversion-ir.js +31 -0
- package/dist/browser/modules/word/convert/docx-to-semantic.d.ts +39 -0
- package/dist/browser/modules/word/convert/docx-to-semantic.js +499 -0
- package/dist/browser/modules/word/convert/flat-opc.d.ts +44 -0
- package/dist/browser/modules/word/convert/flat-opc.js +385 -0
- package/dist/browser/modules/word/convert/html/html-import.d.ts +50 -0
- package/dist/browser/modules/word/convert/html/html-import.js +1907 -0
- package/dist/{types/modules/word → browser/modules/word/convert/html}/html-renderer.d.ts +14 -1
- package/dist/{esm/modules/word → browser/modules/word/convert/html}/html-renderer.js +420 -69
- package/dist/browser/modules/word/convert/html/html.d.ts +15 -0
- package/dist/browser/modules/word/convert/html/html.js +15 -0
- package/dist/browser/modules/word/convert/markdown/markdown-import.d.ts +68 -0
- package/dist/browser/modules/word/convert/markdown/markdown-import.js +1325 -0
- package/dist/browser/modules/word/convert/markdown/markdown-renderer.d.ts +25 -0
- package/dist/browser/modules/word/convert/markdown/markdown-renderer.js +634 -0
- package/dist/browser/modules/word/convert/markdown/markdown.d.ts +15 -0
- package/dist/browser/modules/word/convert/markdown/markdown.js +15 -0
- package/dist/browser/modules/word/convert/odt/odt.d.ts +41 -0
- package/dist/browser/modules/word/convert/odt/odt.js +1932 -0
- package/dist/browser/modules/word/{color-utils.d.ts → core/color-utils.d.ts} +8 -1
- package/dist/browser/modules/word/core/color-utils.js +43 -0
- package/dist/browser/modules/word/core/internal-utils.d.ts +90 -0
- package/dist/browser/modules/word/core/internal-utils.js +209 -0
- package/dist/browser/modules/word/core/mapper.d.ts +44 -0
- package/dist/browser/modules/word/core/mapper.js +427 -0
- package/dist/browser/modules/word/core/opc-paths.d.ts +33 -0
- package/dist/browser/modules/word/core/opc-paths.js +48 -0
- package/dist/browser/modules/word/core/text-utils.d.ts +38 -0
- package/dist/browser/modules/word/core/text-utils.js +202 -0
- package/dist/browser/modules/word/core/walker.d.ts +119 -0
- package/dist/browser/modules/word/core/walker.js +570 -0
- package/dist/browser/modules/word/crypto.d.ts +14 -9
- package/dist/browser/modules/word/crypto.js +13 -7
- package/dist/browser/modules/word/document-io.d.ts +59 -27
- package/dist/browser/modules/word/document-io.js +80 -197
- package/dist/browser/modules/word/errors.d.ts +44 -1
- package/dist/browser/modules/word/errors.js +54 -2
- package/dist/browser/modules/word/excel.d.ts +14 -0
- package/dist/browser/modules/word/excel.js +13 -0
- package/dist/browser/modules/word/font/font-embed.d.ts +112 -0
- package/dist/browser/modules/word/font/font-embed.js +646 -0
- package/dist/{esm/modules/word → browser/modules/word/font}/font-obfuscation.js +4 -9
- package/dist/browser/modules/word/font/hyphenation.d.ts +65 -0
- package/dist/browser/modules/word/font/hyphenation.js +4210 -0
- package/dist/browser/modules/word/font/text-shaping.d.ts +58 -0
- package/dist/browser/modules/word/font/text-shaping.js +635 -0
- package/dist/browser/modules/word/html.d.ts +7 -6
- package/dist/browser/modules/word/html.js +6 -5
- package/dist/browser/modules/word/incremental-edit.d.ts +123 -0
- package/dist/browser/modules/word/incremental-edit.js +361 -0
- package/dist/browser/modules/word/index.base.d.ts +194 -10
- package/dist/browser/modules/word/index.base.js +138 -29
- package/dist/browser/modules/word/layout/layout-constants.d.ts +17 -0
- package/dist/browser/modules/word/layout/layout-constants.js +17 -0
- package/dist/browser/modules/word/layout/layout-full.d.ts +53 -0
- package/dist/browser/modules/word/layout/layout-full.js +1696 -0
- package/dist/browser/modules/word/layout/layout-model.d.ts +344 -0
- package/dist/browser/modules/word/layout/layout-model.js +16 -0
- package/dist/browser/modules/word/layout/layout.d.ts +63 -0
- package/dist/browser/modules/word/layout/layout.js +1167 -0
- package/dist/browser/modules/word/layout/render-page.d.ts +57 -0
- package/dist/browser/modules/word/layout/render-page.js +1238 -0
- package/dist/browser/modules/word/markdown.d.ts +14 -0
- package/dist/browser/modules/word/markdown.js +13 -0
- package/dist/browser/modules/word/patcher.d.ts +62 -0
- package/dist/browser/modules/word/patcher.js +537 -0
- package/dist/browser/modules/word/query/compat.d.ts +25 -0
- package/dist/browser/modules/word/query/compat.js +58 -0
- package/dist/browser/modules/word/query/data-binding.d.ts +22 -0
- package/dist/browser/modules/word/query/data-binding.js +392 -0
- package/dist/browser/modules/word/query/form-fields.d.ts +41 -0
- package/dist/browser/modules/word/query/form-fields.js +268 -0
- package/dist/browser/modules/word/query/format-search.d.ts +99 -0
- package/dist/browser/modules/word/query/format-search.js +329 -0
- package/dist/browser/modules/word/query/mail-merge.d.ts +25 -0
- package/dist/browser/modules/word/query/mail-merge.js +111 -0
- package/dist/browser/modules/word/query/merge.d.ts +50 -0
- package/dist/browser/modules/word/query/merge.js +617 -0
- package/dist/browser/modules/word/query/replace.d.ts +47 -0
- package/dist/browser/modules/word/query/replace.js +301 -0
- package/dist/browser/modules/word/query/revisions.d.ts +67 -0
- package/dist/browser/modules/word/query/revisions.js +879 -0
- package/dist/browser/modules/word/query/search.d.ts +129 -0
- package/dist/browser/modules/word/query/search.js +346 -0
- package/dist/browser/modules/word/query/split.d.ts +44 -0
- package/dist/browser/modules/word/query/split.js +135 -0
- package/dist/browser/modules/word/query/style-resolve.d.ts +104 -0
- package/dist/browser/modules/word/query/style-resolve.js +368 -0
- package/dist/browser/modules/word/reader/chart-parser.d.ts +20 -0
- package/dist/browser/modules/word/reader/chart-parser.js +810 -0
- package/dist/browser/modules/word/reader/comments-parser.d.ts +26 -0
- package/dist/browser/modules/word/reader/comments-parser.js +92 -0
- package/dist/browser/modules/word/reader/doc-props-parsers.d.ts +15 -0
- package/dist/browser/modules/word/reader/doc-props-parsers.js +190 -0
- package/dist/browser/modules/word/reader/docx-reader.d.ts +27 -0
- package/dist/browser/modules/word/reader/docx-reader.js +2557 -0
- package/dist/browser/modules/word/reader/drawing-helpers.d.ts +27 -0
- package/dist/browser/modules/word/reader/drawing-helpers.js +84 -0
- package/dist/browser/modules/word/reader/form-field-parser.d.ts +21 -0
- package/dist/browser/modules/word/reader/form-field-parser.js +82 -0
- package/dist/browser/modules/word/reader/image-parsers.d.ts +11 -0
- package/dist/browser/modules/word/reader/image-parsers.js +291 -0
- package/dist/browser/modules/word/reader/math-parser.d.ts +12 -0
- package/dist/browser/modules/word/reader/math-parser.js +422 -0
- package/dist/browser/modules/word/reader/metadata-parsers.d.ts +17 -0
- package/dist/browser/modules/word/reader/metadata-parsers.js +87 -0
- package/dist/browser/modules/word/reader/numbering-parser.d.ts +13 -0
- package/dist/browser/modules/word/reader/numbering-parser.js +166 -0
- package/dist/browser/modules/word/reader/paragraph-section-parsers.d.ts +12 -0
- package/dist/browser/modules/word/reader/paragraph-section-parsers.js +503 -0
- package/dist/browser/modules/word/reader/parse-utils.d.ts +91 -0
- package/dist/browser/modules/word/reader/parse-utils.js +249 -0
- package/dist/browser/modules/word/reader/properties-parsers.d.ts +21 -0
- package/dist/browser/modules/word/reader/properties-parsers.js +332 -0
- package/dist/browser/modules/word/reader/reader-context.d.ts +69 -0
- package/dist/browser/modules/word/reader/reader-context.js +61 -0
- package/dist/browser/modules/word/reader/sdt-helpers.d.ts +29 -0
- package/dist/browser/modules/word/reader/sdt-helpers.js +111 -0
- package/dist/browser/modules/word/reader/settings-parser.d.ts +8 -0
- package/dist/browser/modules/word/reader/settings-parser.js +263 -0
- package/dist/browser/modules/word/reader/styles-parser.d.ts +12 -0
- package/dist/browser/modules/word/reader/styles-parser.js +147 -0
- package/dist/browser/modules/word/reader/table-properties-parsers.d.ts +12 -0
- package/dist/browser/modules/word/reader/table-properties-parsers.js +234 -0
- package/dist/browser/modules/word/reader/theme-parser.d.ts +8 -0
- package/dist/browser/modules/word/reader/theme-parser.js +167 -0
- package/dist/browser/modules/word/reader/watermark-parser.d.ts +15 -0
- package/dist/browser/modules/word/reader/watermark-parser.js +110 -0
- package/dist/browser/modules/word/security/cfb-reader.d.ts +37 -0
- package/dist/browser/modules/word/security/cfb-reader.js +410 -0
- package/dist/browser/modules/word/{digital-signatures.d.ts → security/digital-signatures.d.ts} +19 -11
- package/dist/browser/modules/word/{digital-signatures.js → security/digital-signatures.js} +34 -34
- package/dist/browser/modules/word/security/document-protection.d.ts +93 -0
- package/dist/browser/modules/word/security/document-protection.js +201 -0
- package/dist/{types/modules/word → browser/modules/word/security}/encryption.d.ts +51 -4
- package/dist/browser/modules/word/security/encryption.js +602 -0
- package/dist/browser/modules/word/security/policy.d.ts +80 -0
- package/dist/browser/modules/word/security/policy.js +102 -0
- package/dist/browser/modules/word/template/template-chart.d.ts +56 -0
- package/dist/browser/modules/word/template/template-chart.js +167 -0
- package/dist/browser/modules/word/template/template-datasource.d.ts +154 -0
- package/dist/browser/modules/word/template/template-datasource.js +541 -0
- package/dist/browser/modules/word/template/template-engine.d.ts +121 -0
- package/dist/browser/modules/word/template/template-engine.js +1435 -0
- package/dist/browser/modules/word/types.d.ts +224 -25
- package/dist/browser/modules/word/units.d.ts +26 -0
- package/dist/browser/modules/word/units.js +43 -14
- package/dist/browser/modules/word/{writers → writer}/chart-writer.js +164 -23
- package/dist/browser/modules/word/writer/checkbox-writer.d.ts +17 -0
- package/dist/browser/modules/word/writer/checkbox-writer.js +79 -0
- package/dist/{types/modules/word/writers → browser/modules/word/writer}/comment-writer.d.ts +2 -1
- package/dist/browser/modules/word/{writers → writer}/comment-writer.js +8 -6
- package/dist/browser/modules/word/writer/common-parts.d.ts +57 -0
- package/dist/browser/modules/word/writer/common-parts.js +101 -0
- package/dist/{types/modules/word → browser/modules/word/writer}/content-types.d.ts +2 -2
- package/dist/{esm/modules/word → browser/modules/word/writer}/content-types.js +14 -6
- package/dist/browser/modules/word/writer/document-writer.d.ts +24 -0
- package/dist/browser/modules/word/writer/document-writer.js +473 -0
- package/dist/browser/modules/word/writer/docx-packager.d.ts +35 -0
- package/dist/browser/modules/word/writer/docx-packager.js +1515 -0
- package/dist/{types/modules/word/writers → browser/modules/word/writer}/footnote-writer.d.ts +3 -2
- package/dist/{esm/modules/word/writers → browser/modules/word/writer}/footnote-writer.js +13 -10
- package/dist/{types/modules/word/writers → browser/modules/word/writer}/header-footer-writer.d.ts +3 -2
- package/dist/{esm/modules/word/writers → browser/modules/word/writer}/header-footer-writer.js +39 -21
- package/dist/{types/modules/word/writers → browser/modules/word/writer}/image-writer.d.ts +1 -1
- package/dist/browser/modules/word/{writers → writer}/image-writer.js +11 -7
- package/dist/browser/modules/word/writer/math-writer.d.ts +20 -0
- package/dist/{esm/modules/word/writers → browser/modules/word/writer}/math-writer.js +21 -1
- package/dist/browser/modules/word/{writers → writer}/numbering-writer.d.ts +1 -1
- package/dist/{esm/modules/word/writers → browser/modules/word/writer}/numbering-writer.js +11 -4
- package/dist/browser/modules/word/{writers → writer}/paragraph-writer.d.ts +2 -1
- package/dist/browser/modules/word/{writers → writer}/paragraph-writer.js +73 -38
- package/dist/browser/modules/word/{writers → writer}/parts-writer.d.ts +3 -3
- package/dist/{esm/modules/word/writers → browser/modules/word/writer}/parts-writer.js +91 -12
- package/dist/browser/modules/word/writer/reference-scanners.d.ts +42 -0
- package/dist/browser/modules/word/writer/reference-scanners.js +111 -0
- package/dist/browser/modules/word/writer/relationships.d.ts +52 -0
- package/dist/browser/modules/word/writer/relationships.js +117 -0
- package/dist/browser/modules/word/writer/render-context.d.ts +124 -0
- package/dist/browser/modules/word/writer/render-context.js +46 -0
- package/dist/browser/modules/word/{writers → writer}/run-writer.d.ts +10 -1
- package/dist/{esm/modules/word/writers → browser/modules/word/writer}/run-writer.js +126 -24
- package/dist/browser/modules/word/writer/sdt-writer.d.ts +25 -0
- package/dist/browser/modules/word/writer/sdt-writer.js +189 -0
- package/dist/browser/modules/word/writer/stream-buf.d.ts +37 -0
- package/dist/browser/modules/word/writer/stream-buf.js +73 -0
- package/dist/browser/modules/word/writer/streaming-writer.d.ts +344 -0
- package/dist/browser/modules/word/writer/streaming-writer.js +1382 -0
- package/dist/browser/modules/word/writer/string-buf.d.ts +8 -0
- package/dist/browser/modules/word/writer/string-buf.js +7 -0
- package/dist/browser/modules/word/{writers → writer}/styles-writer.js +32 -1
- package/dist/browser/modules/word/{writers → writer}/table-writer.d.ts +2 -1
- package/dist/browser/modules/word/{writers → writer}/table-writer.js +94 -11
- package/dist/browser/modules/xml/types.d.ts +22 -0
- package/dist/browser/utils/crypto.browser.d.ts +3 -1
- package/dist/browser/utils/crypto.browser.js +3 -1
- package/dist/browser/utils/crypto.d.ts +4 -1
- package/dist/browser/utils/crypto.js +4 -1
- package/dist/browser/utils/font-metrics.d.ts +63 -0
- package/dist/browser/utils/font-metrics.js +293 -0
- package/dist/browser/utils/string-buf.d.ts +42 -0
- package/dist/browser/utils/string-buf.js +89 -0
- package/dist/browser/utils/theme-colors.d.ts +55 -0
- package/dist/browser/utils/theme-colors.js +120 -0
- package/dist/cjs/modules/archive/compression/streaming-compress.browser.js +29 -0
- package/dist/cjs/modules/archive/compression/streaming-compress.js +9 -0
- package/dist/cjs/modules/archive/compression/worker-pool/pool.browser.js +26 -1
- package/dist/cjs/modules/archive/fs/archive-file.js +78 -16
- package/dist/cjs/modules/archive/unzip/stream.browser.js +43 -2
- package/dist/cjs/modules/excel/chart/chart-ex-builder.js +7 -2
- package/dist/cjs/modules/excel/chart/chart-ex-renderer.js +4 -9
- package/dist/cjs/modules/excel/chart/chart.js +1 -7
- package/dist/cjs/modules/excel/stream/workbook-reader.browser.js +25 -1
- package/dist/cjs/modules/excel/stream/workbook-reader.js +9 -0
- package/dist/cjs/modules/excel/stream/workbook-writer.browser.js +228 -13
- package/dist/cjs/modules/excel/utils/string-buf.js +5 -81
- package/dist/cjs/modules/excel/workbook.browser.js +135 -25
- package/dist/cjs/modules/excel/xlsx/xform/chart/chart-space-xform.js +6 -20
- package/dist/cjs/modules/excel/xlsx/xlsx.browser.js +32 -8
- package/dist/cjs/modules/excel/xlsx/xlsx.js +9 -1
- package/dist/cjs/modules/pdf/excel-bridge.js +33 -0
- package/dist/cjs/modules/pdf/font/metrics.js +11 -244
- package/dist/cjs/modules/pdf/index.js +2 -1
- package/dist/cjs/modules/pdf/render-layout-to-pdf.js +651 -0
- package/dist/cjs/modules/pdf/word-bridge.js +155 -274
- package/dist/cjs/modules/stream/index.base.js +4 -2
- package/dist/cjs/modules/stream/internal/sink-adapter.js +202 -0
- package/dist/cjs/modules/stream/pull-stream.js +51 -5
- package/dist/cjs/modules/word/advanced/diff.js +170 -0
- package/dist/cjs/modules/word/advanced/drawing-shapes.js +279 -0
- package/dist/cjs/modules/word/advanced/field-engine.js +1229 -0
- package/dist/cjs/modules/word/advanced/glossary.js +87 -0
- package/dist/cjs/modules/word/advanced/math-convert.js +599 -0
- package/dist/cjs/modules/word/advanced/ole-objects.js +277 -0
- package/dist/cjs/modules/word/advanced/style-map.js +329 -0
- package/dist/cjs/modules/word/advanced/validation.js +1068 -0
- package/dist/cjs/modules/word/advanced/vba-project.js +274 -0
- package/dist/cjs/modules/word/bridge/excel-bridge.js +1020 -0
- package/dist/cjs/modules/word/builder/document-handle.js +667 -0
- package/dist/cjs/modules/word/builder/paragraph-builders.js +109 -0
- package/dist/cjs/modules/word/builder/run-builders.js +676 -0
- package/dist/cjs/modules/word/builder/table-builders.js +53 -0
- package/dist/cjs/modules/word/constants.js +111 -2
- package/dist/cjs/modules/word/convert/conversion-ir.js +34 -0
- package/dist/cjs/modules/word/convert/docx-to-semantic.js +502 -0
- package/dist/cjs/modules/word/convert/flat-opc.js +390 -0
- package/dist/cjs/modules/word/convert/html/html-import.js +1910 -0
- package/dist/cjs/modules/word/{html-renderer.js → convert/html/html-renderer.js} +420 -69
- package/dist/cjs/modules/word/convert/html/html.js +20 -0
- package/dist/cjs/modules/word/convert/markdown/markdown-import.js +1329 -0
- package/dist/cjs/modules/word/convert/markdown/markdown-renderer.js +637 -0
- package/dist/cjs/modules/word/convert/markdown/markdown.js +21 -0
- package/dist/cjs/modules/word/convert/odt/odt.js +1936 -0
- package/dist/cjs/modules/word/core/color-utils.js +47 -0
- package/dist/cjs/modules/word/core/internal-utils.js +219 -0
- package/dist/cjs/modules/word/core/mapper.js +430 -0
- package/dist/cjs/modules/word/core/opc-paths.js +53 -0
- package/dist/cjs/modules/word/core/text-utils.js +210 -0
- package/dist/cjs/modules/word/core/walker.js +577 -0
- package/dist/cjs/modules/word/crypto.js +19 -8
- package/dist/cjs/modules/word/document-io.js +117 -197
- package/dist/cjs/modules/word/errors.js +59 -13
- package/dist/cjs/modules/word/excel.js +22 -0
- package/dist/cjs/modules/word/font/font-embed.js +652 -0
- package/dist/cjs/modules/word/{font-obfuscation.js → font/font-obfuscation.js} +4 -9
- package/dist/cjs/modules/word/font/hyphenation.js +4216 -0
- package/dist/cjs/modules/word/font/text-shaping.js +640 -0
- package/dist/cjs/modules/word/html.js +9 -7
- package/dist/cjs/modules/word/incremental-edit.js +366 -0
- package/dist/cjs/modules/word/index.base.js +370 -137
- package/dist/cjs/modules/word/layout/layout-constants.js +20 -0
- package/dist/cjs/modules/word/layout/layout-full.js +1699 -0
- package/dist/cjs/modules/word/layout/layout-model.js +17 -0
- package/dist/cjs/modules/word/layout/layout.js +1170 -0
- package/dist/cjs/modules/word/layout/render-page.js +1243 -0
- package/dist/cjs/modules/word/markdown.js +19 -0
- package/dist/cjs/modules/word/patcher.js +539 -0
- package/dist/cjs/modules/word/query/compat.js +61 -0
- package/dist/cjs/modules/word/query/data-binding.js +395 -0
- package/dist/cjs/modules/word/query/form-fields.js +272 -0
- package/dist/cjs/modules/word/query/format-search.js +334 -0
- package/dist/cjs/modules/word/query/mail-merge.js +114 -0
- package/dist/cjs/modules/word/query/merge.js +620 -0
- package/dist/cjs/modules/word/query/replace.js +304 -0
- package/dist/cjs/modules/word/query/revisions.js +885 -0
- package/dist/cjs/modules/word/query/search.js +361 -0
- package/dist/cjs/modules/word/query/split.js +138 -0
- package/dist/cjs/modules/word/query/style-resolve.js +374 -0
- package/dist/cjs/modules/word/reader/chart-parser.js +814 -0
- package/dist/cjs/modules/word/reader/comments-parser.js +96 -0
- package/dist/cjs/modules/word/reader/doc-props-parsers.js +194 -0
- package/dist/cjs/modules/word/reader/docx-reader.js +2560 -0
- package/dist/cjs/modules/word/reader/drawing-helpers.js +90 -0
- package/dist/cjs/modules/word/reader/form-field-parser.js +85 -0
- package/dist/cjs/modules/word/reader/image-parsers.js +293 -0
- package/dist/cjs/modules/word/reader/math-parser.js +424 -0
- package/dist/cjs/modules/word/reader/metadata-parsers.js +93 -0
- package/dist/cjs/modules/word/reader/numbering-parser.js +168 -0
- package/dist/cjs/modules/word/reader/paragraph-section-parsers.js +505 -0
- package/dist/cjs/modules/word/reader/parse-utils.js +271 -0
- package/dist/cjs/modules/word/reader/properties-parsers.js +338 -0
- package/dist/cjs/modules/word/reader/reader-context.js +66 -0
- package/dist/cjs/modules/word/reader/sdt-helpers.js +114 -0
- package/dist/cjs/modules/word/reader/settings-parser.js +265 -0
- package/dist/cjs/modules/word/reader/styles-parser.js +149 -0
- package/dist/cjs/modules/word/reader/table-properties-parsers.js +237 -0
- package/dist/cjs/modules/word/reader/theme-parser.js +169 -0
- package/dist/cjs/modules/word/reader/watermark-parser.js +113 -0
- package/dist/cjs/modules/word/security/cfb-reader.js +414 -0
- package/dist/cjs/modules/word/{digital-signatures.js → security/digital-signatures.js} +34 -34
- package/dist/cjs/modules/word/security/document-protection.js +208 -0
- package/dist/cjs/modules/word/security/encryption.js +612 -0
- package/dist/cjs/modules/word/security/policy.js +106 -0
- package/dist/cjs/modules/word/template/template-chart.js +170 -0
- package/dist/cjs/modules/word/template/template-datasource.js +549 -0
- package/dist/cjs/modules/word/template/template-engine.js +1430 -0
- package/dist/cjs/modules/word/units.js +44 -14
- package/dist/cjs/modules/word/{writers → writer}/chart-writer.js +163 -22
- package/dist/cjs/modules/word/writer/checkbox-writer.js +82 -0
- package/dist/cjs/modules/word/{writers → writer}/comment-writer.js +8 -6
- package/dist/cjs/modules/word/writer/common-parts.js +104 -0
- package/dist/cjs/modules/word/{content-types.js → writer/content-types.js} +14 -6
- package/dist/cjs/modules/word/writer/document-writer.js +478 -0
- package/dist/cjs/modules/word/writer/docx-packager.js +1551 -0
- package/dist/cjs/modules/word/{writers → writer}/footnote-writer.js +13 -10
- package/dist/cjs/modules/word/{writers → writer}/header-footer-writer.js +38 -20
- package/dist/cjs/modules/word/{writers → writer}/image-writer.js +11 -7
- package/dist/cjs/modules/word/{writers → writer}/math-writer.js +21 -1
- package/dist/cjs/modules/word/{writers → writer}/numbering-writer.js +11 -4
- package/dist/cjs/modules/word/{writers → writer}/paragraph-writer.js +72 -37
- package/dist/cjs/modules/word/{writers → writer}/parts-writer.js +91 -12
- package/dist/cjs/modules/word/writer/reference-scanners.js +120 -0
- package/dist/cjs/modules/word/writer/relationships.js +124 -0
- package/dist/cjs/modules/word/writer/render-context.js +51 -0
- package/dist/cjs/modules/word/{writers → writer}/run-writer.js +127 -24
- package/dist/cjs/modules/word/writer/sdt-writer.js +192 -0
- package/dist/cjs/modules/word/writer/stream-buf.js +76 -0
- package/dist/cjs/modules/word/writer/streaming-writer.js +1387 -0
- package/dist/cjs/modules/word/writer/string-buf.js +11 -0
- package/dist/cjs/modules/word/{writers → writer}/styles-writer.js +32 -1
- package/dist/cjs/modules/word/{writers → writer}/table-writer.js +94 -11
- package/dist/cjs/utils/crypto.browser.js +3 -1
- package/dist/cjs/utils/crypto.js +4 -1
- package/dist/cjs/utils/font-metrics.js +303 -0
- package/dist/cjs/utils/string-buf.js +92 -0
- package/dist/cjs/utils/theme-colors.js +126 -0
- package/dist/esm/modules/archive/compression/streaming-compress.browser.js +29 -0
- package/dist/esm/modules/archive/compression/streaming-compress.js +9 -0
- package/dist/esm/modules/archive/compression/worker-pool/pool.browser.js +26 -1
- package/dist/esm/modules/archive/fs/archive-file.js +78 -16
- package/dist/esm/modules/archive/unzip/stream.browser.js +43 -2
- package/dist/esm/modules/excel/chart/chart-ex-builder.js +7 -2
- package/dist/esm/modules/excel/chart/chart-ex-renderer.js +4 -9
- package/dist/esm/modules/excel/chart/chart.js +1 -7
- package/dist/esm/modules/excel/stream/workbook-reader.browser.js +25 -1
- package/dist/esm/modules/excel/stream/workbook-reader.js +9 -0
- package/dist/esm/modules/excel/stream/workbook-writer.browser.js +228 -13
- package/dist/esm/modules/excel/utils/string-buf.js +4 -81
- package/dist/esm/modules/excel/workbook.browser.js +135 -25
- package/dist/esm/modules/excel/xlsx/xform/chart/chart-space-xform.js +6 -20
- package/dist/esm/modules/excel/xlsx/xlsx.browser.js +32 -8
- package/dist/esm/modules/excel/xlsx/xlsx.js +9 -1
- package/dist/esm/modules/pdf/excel-bridge.js +32 -0
- package/dist/esm/modules/pdf/font/metrics.js +3 -237
- package/dist/esm/modules/pdf/index.js +1 -1
- package/dist/esm/modules/pdf/render-layout-to-pdf.js +647 -0
- package/dist/esm/modules/pdf/word-bridge.js +122 -274
- package/dist/esm/modules/stream/index.base.js +2 -1
- package/dist/esm/modules/stream/internal/sink-adapter.js +198 -0
- package/dist/esm/modules/stream/pull-stream.js +51 -5
- package/dist/esm/modules/word/advanced/diff.js +167 -0
- package/dist/esm/modules/word/advanced/drawing-shapes.js +268 -0
- package/dist/esm/modules/word/advanced/field-engine.js +1225 -0
- package/dist/esm/modules/word/advanced/glossary.js +79 -0
- package/dist/esm/modules/word/advanced/math-convert.js +595 -0
- package/dist/esm/modules/word/advanced/ole-objects.js +271 -0
- package/dist/esm/modules/word/advanced/style-map.js +322 -0
- package/dist/esm/modules/word/advanced/validation.js +1065 -0
- package/dist/esm/modules/word/advanced/vba-project.js +265 -0
- package/dist/esm/modules/word/bridge/excel-bridge.js +980 -0
- package/dist/esm/modules/word/builder/document-handle.js +664 -0
- package/dist/esm/modules/word/builder/paragraph-builders.js +90 -0
- package/dist/esm/modules/word/builder/run-builders.js +600 -0
- package/dist/esm/modules/word/builder/table-builders.js +45 -0
- package/dist/esm/modules/word/constants.js +109 -1
- package/dist/esm/modules/word/convert/conversion-ir.js +31 -0
- package/dist/esm/modules/word/convert/docx-to-semantic.js +499 -0
- package/dist/esm/modules/word/convert/flat-opc.js +385 -0
- package/dist/esm/modules/word/convert/html/html-import.js +1907 -0
- package/dist/{browser/modules/word → esm/modules/word/convert/html}/html-renderer.js +420 -69
- package/dist/esm/modules/word/convert/html/html.js +15 -0
- package/dist/esm/modules/word/convert/markdown/markdown-import.js +1325 -0
- package/dist/esm/modules/word/convert/markdown/markdown-renderer.js +634 -0
- package/dist/esm/modules/word/convert/markdown/markdown.js +15 -0
- package/dist/esm/modules/word/convert/odt/odt.js +1932 -0
- package/dist/esm/modules/word/core/color-utils.js +43 -0
- package/dist/esm/modules/word/core/internal-utils.js +209 -0
- package/dist/esm/modules/word/core/mapper.js +427 -0
- package/dist/esm/modules/word/core/opc-paths.js +48 -0
- package/dist/esm/modules/word/core/text-utils.js +202 -0
- package/dist/esm/modules/word/core/walker.js +570 -0
- package/dist/esm/modules/word/crypto.js +13 -7
- package/dist/esm/modules/word/document-io.js +80 -197
- package/dist/esm/modules/word/errors.js +54 -2
- package/dist/esm/modules/word/excel.js +13 -0
- package/dist/esm/modules/word/font/font-embed.js +646 -0
- package/dist/{browser/modules/word → esm/modules/word/font}/font-obfuscation.js +4 -9
- package/dist/esm/modules/word/font/hyphenation.js +4210 -0
- package/dist/esm/modules/word/font/text-shaping.js +635 -0
- package/dist/esm/modules/word/html.js +6 -5
- package/dist/esm/modules/word/incremental-edit.js +361 -0
- package/dist/esm/modules/word/index.base.js +138 -29
- package/dist/esm/modules/word/layout/layout-constants.js +17 -0
- package/dist/esm/modules/word/layout/layout-full.js +1696 -0
- package/dist/esm/modules/word/layout/layout-model.js +16 -0
- package/dist/esm/modules/word/layout/layout.js +1167 -0
- package/dist/esm/modules/word/layout/render-page.js +1238 -0
- package/dist/esm/modules/word/markdown.js +13 -0
- package/dist/esm/modules/word/patcher.js +537 -0
- package/dist/esm/modules/word/query/compat.js +58 -0
- package/dist/esm/modules/word/query/data-binding.js +392 -0
- package/dist/esm/modules/word/query/form-fields.js +268 -0
- package/dist/esm/modules/word/query/format-search.js +329 -0
- package/dist/esm/modules/word/query/mail-merge.js +111 -0
- package/dist/esm/modules/word/query/merge.js +617 -0
- package/dist/esm/modules/word/query/replace.js +301 -0
- package/dist/esm/modules/word/query/revisions.js +879 -0
- package/dist/esm/modules/word/query/search.js +346 -0
- package/dist/esm/modules/word/query/split.js +135 -0
- package/dist/esm/modules/word/query/style-resolve.js +368 -0
- package/dist/esm/modules/word/reader/chart-parser.js +810 -0
- package/dist/esm/modules/word/reader/comments-parser.js +92 -0
- package/dist/esm/modules/word/reader/doc-props-parsers.js +190 -0
- package/dist/esm/modules/word/reader/docx-reader.js +2557 -0
- package/dist/esm/modules/word/reader/drawing-helpers.js +84 -0
- package/dist/esm/modules/word/reader/form-field-parser.js +82 -0
- package/dist/esm/modules/word/reader/image-parsers.js +291 -0
- package/dist/esm/modules/word/reader/math-parser.js +422 -0
- package/dist/esm/modules/word/reader/metadata-parsers.js +87 -0
- package/dist/esm/modules/word/reader/numbering-parser.js +166 -0
- package/dist/esm/modules/word/reader/paragraph-section-parsers.js +503 -0
- package/dist/esm/modules/word/reader/parse-utils.js +249 -0
- package/dist/esm/modules/word/reader/properties-parsers.js +332 -0
- package/dist/esm/modules/word/reader/reader-context.js +61 -0
- package/dist/esm/modules/word/reader/sdt-helpers.js +111 -0
- package/dist/esm/modules/word/reader/settings-parser.js +263 -0
- package/dist/esm/modules/word/reader/styles-parser.js +147 -0
- package/dist/esm/modules/word/reader/table-properties-parsers.js +234 -0
- package/dist/esm/modules/word/reader/theme-parser.js +167 -0
- package/dist/esm/modules/word/reader/watermark-parser.js +110 -0
- package/dist/esm/modules/word/security/cfb-reader.js +410 -0
- package/dist/esm/modules/word/{digital-signatures.js → security/digital-signatures.js} +34 -34
- package/dist/esm/modules/word/security/document-protection.js +201 -0
- package/dist/esm/modules/word/security/encryption.js +602 -0
- package/dist/esm/modules/word/security/policy.js +102 -0
- package/dist/esm/modules/word/template/template-chart.js +167 -0
- package/dist/esm/modules/word/template/template-datasource.js +541 -0
- package/dist/esm/modules/word/template/template-engine.js +1435 -0
- package/dist/esm/modules/word/units.js +43 -14
- package/dist/esm/modules/word/{writers → writer}/chart-writer.js +164 -23
- package/dist/esm/modules/word/writer/checkbox-writer.js +79 -0
- package/dist/esm/modules/word/{writers → writer}/comment-writer.js +8 -6
- package/dist/esm/modules/word/writer/common-parts.js +101 -0
- package/dist/{browser/modules/word → esm/modules/word/writer}/content-types.js +14 -6
- package/dist/esm/modules/word/writer/document-writer.js +473 -0
- package/dist/esm/modules/word/writer/docx-packager.js +1515 -0
- package/dist/{browser/modules/word/writers → esm/modules/word/writer}/footnote-writer.js +13 -10
- package/dist/{browser/modules/word/writers → esm/modules/word/writer}/header-footer-writer.js +39 -21
- package/dist/esm/modules/word/{writers → writer}/image-writer.js +11 -7
- package/dist/{browser/modules/word/writers → esm/modules/word/writer}/math-writer.js +21 -1
- package/dist/{browser/modules/word/writers → esm/modules/word/writer}/numbering-writer.js +11 -4
- package/dist/esm/modules/word/{writers → writer}/paragraph-writer.js +73 -38
- package/dist/{browser/modules/word/writers → esm/modules/word/writer}/parts-writer.js +91 -12
- package/dist/esm/modules/word/writer/reference-scanners.js +111 -0
- package/dist/esm/modules/word/writer/relationships.js +117 -0
- package/dist/esm/modules/word/writer/render-context.js +46 -0
- package/dist/{browser/modules/word/writers → esm/modules/word/writer}/run-writer.js +126 -24
- package/dist/esm/modules/word/writer/sdt-writer.js +189 -0
- package/dist/esm/modules/word/writer/stream-buf.js +73 -0
- package/dist/esm/modules/word/writer/streaming-writer.js +1382 -0
- package/dist/esm/modules/word/writer/string-buf.js +7 -0
- package/dist/esm/modules/word/{writers → writer}/styles-writer.js +32 -1
- package/dist/esm/modules/word/{writers → writer}/table-writer.js +94 -11
- package/dist/esm/utils/crypto.browser.js +3 -1
- package/dist/esm/utils/crypto.js +4 -1
- package/dist/esm/utils/font-metrics.js +293 -0
- package/dist/esm/utils/string-buf.js +89 -0
- package/dist/esm/utils/theme-colors.js +120 -0
- package/dist/iife/excelts.iife.js +70692 -70337
- package/dist/iife/excelts.iife.js.map +1 -1
- package/dist/iife/excelts.iife.min.js +57 -57
- package/dist/types/modules/archive/fs/archive-file.d.ts +8 -5
- package/dist/types/modules/excel/chart/chart-ex-types.d.ts +0 -12
- package/dist/types/modules/excel/chart/chart.d.ts +1 -5
- package/dist/types/modules/excel/chart/types.d.ts +0 -6
- package/dist/types/modules/excel/stream/workbook-writer.browser.d.ts +40 -0
- package/dist/types/modules/excel/utils/string-buf.d.ts +5 -26
- package/dist/types/modules/excel/xlsx/xlsx.browser.d.ts +19 -9
- package/dist/types/modules/excel/xlsx/xlsx.d.ts +10 -2
- package/dist/types/modules/pdf/excel-bridge.d.ts +30 -1
- package/dist/types/modules/pdf/font/metrics.d.ts +3 -52
- package/dist/types/modules/pdf/index.d.ts +1 -1
- package/dist/types/modules/pdf/render-layout-to-pdf.d.ts +66 -0
- package/dist/types/modules/pdf/word-bridge.d.ts +80 -12
- package/dist/types/modules/stream/index.base.d.ts +2 -0
- package/dist/types/modules/stream/internal/sink-adapter.d.ts +65 -0
- package/dist/types/modules/stream/pull-stream.d.ts +19 -2
- package/dist/types/modules/stream/types.d.ts +13 -1
- package/dist/types/modules/word/advanced/diff.d.ts +61 -0
- package/dist/types/modules/word/advanced/drawing-shapes.d.ts +269 -0
- package/dist/types/modules/word/advanced/field-engine.d.ts +43 -0
- package/dist/types/modules/word/advanced/glossary.d.ts +86 -0
- package/dist/types/modules/word/advanced/math-convert.d.ts +30 -0
- package/dist/types/modules/word/advanced/ole-objects.d.ts +115 -0
- package/dist/types/modules/word/advanced/style-map.d.ts +105 -0
- package/dist/types/modules/word/advanced/validation.d.ts +56 -0
- package/dist/types/modules/word/advanced/vba-project.d.ts +91 -0
- package/dist/types/modules/word/bridge/excel-bridge.d.ts +127 -0
- package/dist/types/modules/word/builder/document-handle.d.ts +151 -0
- package/dist/types/modules/word/builder/paragraph-builders.d.ts +61 -0
- package/dist/types/modules/word/builder/run-builders.d.ts +374 -0
- package/dist/types/modules/word/builder/table-builders.d.ts +23 -0
- package/dist/types/modules/word/constants.d.ts +39 -1
- package/dist/types/modules/word/convert/conversion-ir.d.ts +210 -0
- package/dist/types/modules/word/convert/docx-to-semantic.d.ts +39 -0
- package/dist/types/modules/word/convert/flat-opc.d.ts +44 -0
- package/dist/types/modules/word/convert/html/html-import.d.ts +50 -0
- package/dist/{browser/modules/word → types/modules/word/convert/html}/html-renderer.d.ts +14 -1
- package/dist/types/modules/word/convert/html/html.d.ts +15 -0
- package/dist/types/modules/word/convert/markdown/markdown-import.d.ts +68 -0
- package/dist/types/modules/word/convert/markdown/markdown-renderer.d.ts +25 -0
- package/dist/types/modules/word/convert/markdown/markdown.d.ts +15 -0
- package/dist/types/modules/word/convert/odt/odt.d.ts +41 -0
- package/dist/types/modules/word/{color-utils.d.ts → core/color-utils.d.ts} +8 -1
- package/dist/types/modules/word/core/internal-utils.d.ts +90 -0
- package/dist/types/modules/word/core/mapper.d.ts +44 -0
- package/dist/types/modules/word/core/opc-paths.d.ts +33 -0
- package/dist/types/modules/word/core/text-utils.d.ts +38 -0
- package/dist/types/modules/word/core/walker.d.ts +119 -0
- package/dist/types/modules/word/crypto.d.ts +14 -9
- package/dist/types/modules/word/document-io.d.ts +59 -27
- package/dist/types/modules/word/errors.d.ts +44 -1
- package/dist/types/modules/word/excel.d.ts +14 -0
- package/dist/types/modules/word/font/font-embed.d.ts +112 -0
- package/dist/types/modules/word/font/hyphenation.d.ts +65 -0
- package/dist/types/modules/word/font/text-shaping.d.ts +58 -0
- package/dist/types/modules/word/html.d.ts +7 -6
- package/dist/types/modules/word/incremental-edit.d.ts +123 -0
- package/dist/types/modules/word/index.base.d.ts +194 -10
- package/dist/types/modules/word/layout/layout-constants.d.ts +17 -0
- package/dist/types/modules/word/layout/layout-full.d.ts +53 -0
- package/dist/types/modules/word/layout/layout-model.d.ts +344 -0
- package/dist/types/modules/word/layout/layout.d.ts +63 -0
- package/dist/types/modules/word/layout/render-page.d.ts +57 -0
- package/dist/types/modules/word/markdown.d.ts +14 -0
- package/dist/types/modules/word/patcher.d.ts +62 -0
- package/dist/types/modules/word/query/compat.d.ts +25 -0
- package/dist/types/modules/word/query/data-binding.d.ts +22 -0
- package/dist/types/modules/word/query/form-fields.d.ts +41 -0
- package/dist/types/modules/word/query/format-search.d.ts +99 -0
- package/dist/types/modules/word/query/mail-merge.d.ts +25 -0
- package/dist/types/modules/word/query/merge.d.ts +50 -0
- package/dist/types/modules/word/query/replace.d.ts +47 -0
- package/dist/types/modules/word/query/revisions.d.ts +67 -0
- package/dist/types/modules/word/query/search.d.ts +129 -0
- package/dist/types/modules/word/query/split.d.ts +44 -0
- package/dist/types/modules/word/query/style-resolve.d.ts +104 -0
- package/dist/types/modules/word/reader/chart-parser.d.ts +20 -0
- package/dist/types/modules/word/reader/comments-parser.d.ts +26 -0
- package/dist/types/modules/word/reader/doc-props-parsers.d.ts +15 -0
- package/dist/types/modules/word/reader/docx-reader.d.ts +27 -0
- package/dist/types/modules/word/reader/drawing-helpers.d.ts +27 -0
- package/dist/types/modules/word/reader/form-field-parser.d.ts +21 -0
- package/dist/types/modules/word/reader/image-parsers.d.ts +11 -0
- package/dist/types/modules/word/reader/math-parser.d.ts +12 -0
- package/dist/types/modules/word/reader/metadata-parsers.d.ts +17 -0
- package/dist/types/modules/word/reader/numbering-parser.d.ts +13 -0
- package/dist/types/modules/word/reader/paragraph-section-parsers.d.ts +12 -0
- package/dist/types/modules/word/reader/parse-utils.d.ts +91 -0
- package/dist/types/modules/word/reader/properties-parsers.d.ts +21 -0
- package/dist/types/modules/word/reader/reader-context.d.ts +69 -0
- package/dist/types/modules/word/reader/sdt-helpers.d.ts +29 -0
- package/dist/types/modules/word/reader/settings-parser.d.ts +8 -0
- package/dist/types/modules/word/reader/styles-parser.d.ts +12 -0
- package/dist/types/modules/word/reader/table-properties-parsers.d.ts +12 -0
- package/dist/types/modules/word/reader/theme-parser.d.ts +8 -0
- package/dist/types/modules/word/reader/watermark-parser.d.ts +15 -0
- package/dist/types/modules/word/security/cfb-reader.d.ts +37 -0
- package/dist/types/modules/word/{digital-signatures.d.ts → security/digital-signatures.d.ts} +19 -11
- package/dist/types/modules/word/security/document-protection.d.ts +93 -0
- package/dist/{browser/modules/word → types/modules/word/security}/encryption.d.ts +51 -4
- package/dist/types/modules/word/security/policy.d.ts +80 -0
- package/dist/types/modules/word/template/template-chart.d.ts +56 -0
- package/dist/types/modules/word/template/template-datasource.d.ts +154 -0
- package/dist/types/modules/word/template/template-engine.d.ts +121 -0
- package/dist/types/modules/word/types.d.ts +224 -25
- package/dist/types/modules/word/units.d.ts +26 -0
- package/dist/types/modules/word/writer/checkbox-writer.d.ts +17 -0
- package/dist/{browser/modules/word/writers → types/modules/word/writer}/comment-writer.d.ts +2 -1
- package/dist/types/modules/word/writer/common-parts.d.ts +57 -0
- package/dist/{browser/modules/word → types/modules/word/writer}/content-types.d.ts +2 -2
- package/dist/types/modules/word/writer/document-writer.d.ts +24 -0
- package/dist/types/modules/word/writer/docx-packager.d.ts +35 -0
- package/dist/{browser/modules/word/writers → types/modules/word/writer}/footnote-writer.d.ts +3 -2
- package/dist/{browser/modules/word/writers → types/modules/word/writer}/header-footer-writer.d.ts +3 -2
- package/dist/{browser/modules/word/writers → types/modules/word/writer}/image-writer.d.ts +1 -1
- package/dist/types/modules/word/writer/math-writer.d.ts +20 -0
- package/dist/types/modules/word/{writers → writer}/numbering-writer.d.ts +1 -1
- package/dist/types/modules/word/{writers → writer}/paragraph-writer.d.ts +2 -1
- package/dist/types/modules/word/{writers → writer}/parts-writer.d.ts +3 -3
- package/dist/types/modules/word/writer/reference-scanners.d.ts +42 -0
- package/dist/types/modules/word/writer/relationships.d.ts +52 -0
- package/dist/types/modules/word/writer/render-context.d.ts +124 -0
- package/dist/types/modules/word/{writers → writer}/run-writer.d.ts +10 -1
- package/dist/types/modules/word/writer/sdt-writer.d.ts +25 -0
- package/dist/types/modules/word/writer/stream-buf.d.ts +37 -0
- package/dist/types/modules/word/writer/streaming-writer.d.ts +344 -0
- package/dist/types/modules/word/writer/string-buf.d.ts +8 -0
- package/dist/types/modules/word/{writers → writer}/table-writer.d.ts +2 -1
- package/dist/types/modules/xml/types.d.ts +22 -0
- package/dist/types/utils/crypto.browser.d.ts +3 -1
- package/dist/types/utils/crypto.d.ts +4 -1
- package/dist/types/utils/font-metrics.d.ts +63 -0
- package/dist/types/utils/string-buf.d.ts +42 -0
- package/dist/types/utils/theme-colors.d.ts +55 -0
- package/package.json +121 -39
- package/dist/browser/modules/word/color-utils.js +0 -94
- package/dist/browser/modules/word/document.d.ts +0 -657
- package/dist/browser/modules/word/document.js +0 -1533
- package/dist/browser/modules/word/docx-packager.d.ts +0 -14
- package/dist/browser/modules/word/docx-packager.js +0 -822
- package/dist/browser/modules/word/docx-reader.d.ts +0 -11
- package/dist/browser/modules/word/docx-reader.js +0 -4929
- package/dist/browser/modules/word/encryption.js +0 -274
- package/dist/browser/modules/word/internal-utils.d.ts +0 -23
- package/dist/browser/modules/word/internal-utils.js +0 -54
- package/dist/browser/modules/word/namespaces.d.ts +0 -159
- package/dist/browser/modules/word/namespaces.js +0 -189
- package/dist/browser/modules/word/relationships.d.ts +0 -30
- package/dist/browser/modules/word/relationships.js +0 -48
- package/dist/browser/modules/word/writers/checkbox-writer.d.ts +0 -9
- package/dist/browser/modules/word/writers/checkbox-writer.js +0 -42
- package/dist/browser/modules/word/writers/document-writer.d.ts +0 -16
- package/dist/browser/modules/word/writers/document-writer.js +0 -461
- package/dist/browser/modules/word/writers/math-writer.d.ts +0 -9
- package/dist/cjs/modules/word/color-utils.js +0 -97
- package/dist/cjs/modules/word/document.js +0 -1645
- package/dist/cjs/modules/word/docx-packager.js +0 -825
- package/dist/cjs/modules/word/docx-reader.js +0 -4932
- package/dist/cjs/modules/word/encryption.js +0 -282
- package/dist/cjs/modules/word/internal-utils.js +0 -59
- package/dist/cjs/modules/word/namespaces.js +0 -192
- package/dist/cjs/modules/word/relationships.js +0 -55
- package/dist/cjs/modules/word/writers/checkbox-writer.js +0 -45
- package/dist/cjs/modules/word/writers/document-writer.js +0 -465
- package/dist/esm/modules/word/color-utils.js +0 -94
- package/dist/esm/modules/word/document.js +0 -1533
- package/dist/esm/modules/word/docx-packager.js +0 -822
- package/dist/esm/modules/word/docx-reader.js +0 -4929
- package/dist/esm/modules/word/encryption.js +0 -274
- package/dist/esm/modules/word/internal-utils.js +0 -54
- package/dist/esm/modules/word/namespaces.js +0 -189
- package/dist/esm/modules/word/relationships.js +0 -48
- package/dist/esm/modules/word/writers/checkbox-writer.js +0 -42
- package/dist/esm/modules/word/writers/document-writer.js +0 -461
- package/dist/types/modules/word/document.d.ts +0 -657
- package/dist/types/modules/word/docx-packager.d.ts +0 -14
- package/dist/types/modules/word/docx-reader.d.ts +0 -11
- package/dist/types/modules/word/internal-utils.d.ts +0 -23
- package/dist/types/modules/word/namespaces.d.ts +0 -159
- package/dist/types/modules/word/relationships.d.ts +0 -30
- package/dist/types/modules/word/writers/checkbox-writer.d.ts +0 -9
- package/dist/types/modules/word/writers/document-writer.d.ts +0 -16
- package/dist/types/modules/word/writers/math-writer.d.ts +0 -9
- /package/dist/browser/modules/word/{font-obfuscation.d.ts → font/font-obfuscation.d.ts} +0 -0
- /package/dist/browser/modules/word/{writers → writer}/chart-writer.d.ts +0 -0
- /package/dist/browser/modules/word/{writers → writer}/section-writer.d.ts +0 -0
- /package/dist/browser/modules/word/{writers → writer}/section-writer.js +0 -0
- /package/dist/browser/modules/word/{writers → writer}/styles-writer.d.ts +0 -0
- /package/dist/browser/modules/word/{writers → writer}/textbox-writer.d.ts +0 -0
- /package/dist/browser/modules/word/{writers → writer}/textbox-writer.js +0 -0
- /package/dist/browser/modules/word/{writers → writer}/toc-writer.d.ts +0 -0
- /package/dist/browser/modules/word/{writers → writer}/toc-writer.js +0 -0
- /package/dist/cjs/modules/word/{writers → writer}/section-writer.js +0 -0
- /package/dist/cjs/modules/word/{writers → writer}/textbox-writer.js +0 -0
- /package/dist/cjs/modules/word/{writers → writer}/toc-writer.js +0 -0
- /package/dist/esm/modules/word/{writers → writer}/section-writer.js +0 -0
- /package/dist/esm/modules/word/{writers → writer}/textbox-writer.js +0 -0
- /package/dist/esm/modules/word/{writers → writer}/toc-writer.js +0 -0
- /package/dist/types/modules/word/{font-obfuscation.d.ts → font/font-obfuscation.d.ts} +0 -0
- /package/dist/types/modules/word/{writers → writer}/chart-writer.d.ts +0 -0
- /package/dist/types/modules/word/{writers → writer}/section-writer.d.ts +0 -0
- /package/dist/types/modules/word/{writers → writer}/styles-writer.d.ts +0 -0
- /package/dist/types/modules/word/{writers → writer}/textbox-writer.d.ts +0 -0
- /package/dist/types/modules/word/{writers → writer}/toc-writer.d.ts +0 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Format-based Search for DOCX Documents
|
|
3
|
+
*
|
|
4
|
+
* Provides the ability to search for text runs that match specific formatting
|
|
5
|
+
* criteria (bold, italic, font, color, style, etc.) and optionally match text patterns.
|
|
6
|
+
*
|
|
7
|
+
* @stability experimental
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { searchByFormat, type FormatCriteria } from "excelts/word";
|
|
12
|
+
*
|
|
13
|
+
* // Find all bold red text
|
|
14
|
+
* const results = searchByFormat(doc, { bold: true, color: "FF0000" });
|
|
15
|
+
*
|
|
16
|
+
* // Find all text in "Heading1" style
|
|
17
|
+
* const headings = searchByFormat(doc, { paragraphStyle: "Heading1" });
|
|
18
|
+
*
|
|
19
|
+
* // Find specific text with specific formatting
|
|
20
|
+
* const results = searchByFormat(doc, { bold: true, textMatch: /TODO/i });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
import type { DocxDocument, RunProperties } from "../types.js";
|
|
24
|
+
/** Criteria for matching text formatting. All fields are optional — they act as AND filters. */
|
|
25
|
+
export interface FormatCriteria {
|
|
26
|
+
/** Match bold text. */
|
|
27
|
+
readonly bold?: boolean;
|
|
28
|
+
/** Match italic text. */
|
|
29
|
+
readonly italic?: boolean;
|
|
30
|
+
/** Match underlined text (any style). */
|
|
31
|
+
readonly underline?: boolean;
|
|
32
|
+
/** Match strikethrough text. */
|
|
33
|
+
readonly strike?: boolean;
|
|
34
|
+
/** Match text with this font (case-insensitive). */
|
|
35
|
+
readonly font?: string;
|
|
36
|
+
/** Match text with this font size in half-points. */
|
|
37
|
+
readonly size?: number;
|
|
38
|
+
/** Match text with this color (hex, case-insensitive, without '#'). */
|
|
39
|
+
readonly color?: string;
|
|
40
|
+
/** Match text with this highlight color. */
|
|
41
|
+
readonly highlight?: string;
|
|
42
|
+
/** Match text with superscript. */
|
|
43
|
+
readonly superscript?: boolean;
|
|
44
|
+
/** Match text with subscript. */
|
|
45
|
+
readonly subscript?: boolean;
|
|
46
|
+
/** Match text with all-caps. */
|
|
47
|
+
readonly caps?: boolean;
|
|
48
|
+
/** Match text with small-caps. */
|
|
49
|
+
readonly smallCaps?: boolean;
|
|
50
|
+
/** Match text with hidden attribute. */
|
|
51
|
+
readonly hidden?: boolean;
|
|
52
|
+
/** Match runs whose paragraph has this style name/id. */
|
|
53
|
+
readonly paragraphStyle?: string;
|
|
54
|
+
/** Match runs with this character style name/id. */
|
|
55
|
+
readonly characterStyle?: string;
|
|
56
|
+
/** Optional text pattern (string or regex) to additionally filter by content. */
|
|
57
|
+
readonly textMatch?: string | RegExp;
|
|
58
|
+
}
|
|
59
|
+
/** A single format search result. */
|
|
60
|
+
export interface FormatSearchResult {
|
|
61
|
+
/** Index in the document body (for BodyContent). */
|
|
62
|
+
readonly bodyIndex: number;
|
|
63
|
+
/** Paragraph index within the body content (for tables, the cell paragraph). */
|
|
64
|
+
readonly paragraphIndex: number;
|
|
65
|
+
/** Index of the matching run within the paragraph's children. */
|
|
66
|
+
readonly runIndex: number;
|
|
67
|
+
/** The matched text. */
|
|
68
|
+
readonly text: string;
|
|
69
|
+
/** The run's properties (formatting). */
|
|
70
|
+
readonly properties: RunProperties | undefined;
|
|
71
|
+
/** The paragraph style (if any). */
|
|
72
|
+
readonly paragraphStyle: string | undefined;
|
|
73
|
+
/** Location context for display. */
|
|
74
|
+
readonly location: "body" | "header" | "footer" | "footnote" | "endnote";
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Search a document for text runs matching specific formatting criteria.
|
|
78
|
+
*
|
|
79
|
+
* @param doc - The document to search.
|
|
80
|
+
* @param criteria - Formatting criteria (all specified fields must match).
|
|
81
|
+
* @returns Array of matching results.
|
|
82
|
+
*/
|
|
83
|
+
export declare function searchByFormat(doc: DocxDocument, criteria: FormatCriteria): FormatSearchResult[];
|
|
84
|
+
/**
|
|
85
|
+
* Count the number of runs matching specific formatting criteria.
|
|
86
|
+
*
|
|
87
|
+
* @param doc - The document to search.
|
|
88
|
+
* @param criteria - Formatting criteria.
|
|
89
|
+
* @returns The count of matching runs.
|
|
90
|
+
*/
|
|
91
|
+
export declare function countByFormat(doc: DocxDocument, criteria: FormatCriteria): number;
|
|
92
|
+
/**
|
|
93
|
+
* Get all unique formatting styles used in the document.
|
|
94
|
+
* Useful for understanding what formats exist before searching.
|
|
95
|
+
*
|
|
96
|
+
* @param doc - The document to analyze.
|
|
97
|
+
* @returns Array of unique RunProperties objects found.
|
|
98
|
+
*/
|
|
99
|
+
export declare function getUsedFormats(doc: DocxDocument): RunProperties[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mail Merge API
|
|
3
|
+
*
|
|
4
|
+
* Replace MERGEFIELD fields in a document with values from a data map.
|
|
5
|
+
* Uses the unified walker from core/walker.ts for consistent traversal
|
|
6
|
+
* across body, headers, footers, footnotes, endnotes, tables, and SDTs.
|
|
7
|
+
*
|
|
8
|
+
* Note: This API mutates the document in place for backward compatibility.
|
|
9
|
+
*/
|
|
10
|
+
import type { DocxDocument } from "../types.js";
|
|
11
|
+
/**
|
|
12
|
+
* Execute a mail merge: replace all MERGEFIELD fields in the document with values from the data map.
|
|
13
|
+
*
|
|
14
|
+
* Fields not found in the data map are left unchanged (or optionally cleared).
|
|
15
|
+
* Traverses body, headers, footers, footnotes, endnotes, tables, SDTs, and comments.
|
|
16
|
+
*
|
|
17
|
+
* @param doc - The document to modify (mutated in place).
|
|
18
|
+
* @param data - Map of field names to replacement values.
|
|
19
|
+
* @param options - Optional settings.
|
|
20
|
+
* @returns The number of fields replaced.
|
|
21
|
+
*/
|
|
22
|
+
export declare function mailMerge(doc: DocxDocument, data: Record<string, string>, options?: {
|
|
23
|
+
/** If true, remove fields not found in data. Default: false (leave unchanged). */
|
|
24
|
+
removeUnmatched?: boolean;
|
|
25
|
+
}): number;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document Merge API
|
|
3
|
+
*
|
|
4
|
+
* Merge multiple DocxDocument bodies into a single document.
|
|
5
|
+
*
|
|
6
|
+
* The first document is taken as the base (its styles, settings, page layout,
|
|
7
|
+
* etc. become the foundation). Each subsequent document is appended after a
|
|
8
|
+
* section break. Numbering definitions, instances and the body references
|
|
9
|
+
* that point to them are rewritten when the appended document collides with
|
|
10
|
+
* IDs already present in the base. Image rIds, footnote/endnote ids and
|
|
11
|
+
* comment ids are also remapped, and the corresponding parts (footnotes,
|
|
12
|
+
* endnotes, comments) are merged so that references emitted in the body
|
|
13
|
+
* still resolve.
|
|
14
|
+
*
|
|
15
|
+
* What is *not* merged today (callers needing these should compose at a
|
|
16
|
+
* higher level):
|
|
17
|
+
* - headers / footers (only the base document's are kept; appended
|
|
18
|
+
* documents' header/footer parts are dropped)
|
|
19
|
+
* - customXmlParts, embeddedFonts, settings, coreProperties, app
|
|
20
|
+
* metadata, theme, document protection, signatures, vbaProject
|
|
21
|
+
*
|
|
22
|
+
* Body content from appended documents is deep-cloned so that callers'
|
|
23
|
+
* models are never mutated.
|
|
24
|
+
*/
|
|
25
|
+
import type { DocxDocument } from "../types.js";
|
|
26
|
+
/** Options for merging documents. */
|
|
27
|
+
export interface MergeOptions {
|
|
28
|
+
/** Break type between merged documents. Default: "nextPage". */
|
|
29
|
+
readonly sectionBreak?: "continuous" | "nextPage" | "evenPage" | "oddPage";
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Merge multiple DocxDocument bodies into a single document.
|
|
33
|
+
*
|
|
34
|
+
* The first document is used as the base (preserving its styles, numbering,
|
|
35
|
+
* settings, etc.). Subsequent documents' body content is appended with
|
|
36
|
+
* section breaks between them. IDs that collide with the base are remapped
|
|
37
|
+
* during the deep-clone of each appended body:
|
|
38
|
+
* - paragraph numbering refs (numId)
|
|
39
|
+
* - inline / floating image rIds
|
|
40
|
+
* - footnote, endnote and comment references (and their range markers)
|
|
41
|
+
*
|
|
42
|
+
* The corresponding `footnotes`, `endnotes`, `comments` and `images`
|
|
43
|
+
* collections are merged in tandem so references emitted into the body
|
|
44
|
+
* still resolve in the output package.
|
|
45
|
+
*
|
|
46
|
+
* @param documents - Array of documents to merge (at least 1).
|
|
47
|
+
* @param options - Optional merge settings.
|
|
48
|
+
* @returns A new merged DocxDocument.
|
|
49
|
+
*/
|
|
50
|
+
export declare function mergeDocuments(documents: readonly DocxDocument[], options?: MergeOptions): DocxDocument;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document Replace API
|
|
3
|
+
*
|
|
4
|
+
* Uses the unified walker from core/walker.ts for consistent traversal
|
|
5
|
+
* across body, headers, footers, footnotes, endnotes, comments, and SDTs.
|
|
6
|
+
*
|
|
7
|
+
* Note: This API mutates the document in place for backward compatibility.
|
|
8
|
+
*
|
|
9
|
+
* Implementation notes:
|
|
10
|
+
* We always operate on the paragraph's concatenated plain text and the
|
|
11
|
+
* ordered list of text-bearing run-content nodes ("text segments").
|
|
12
|
+
* This guarantees consistent semantics regardless of whether matches sit
|
|
13
|
+
* inside a single run or straddle multiple runs:
|
|
14
|
+
* 1. Build segment table [seg0, seg1, ...] with absolute offsets.
|
|
15
|
+
* 2. Compute every match using a global regex (string searches are
|
|
16
|
+
* promoted to a global regex with the literal escaped).
|
|
17
|
+
* 3. Walk segments and matches together. For each segment we emit:
|
|
18
|
+
* - the literal (un-matched) prefix/middle/suffix slices, and
|
|
19
|
+
* - the replacement string the first time we see each match.
|
|
20
|
+
* Subsequent segments overlapping the same match contribute the empty
|
|
21
|
+
* string (so the replacement is not duplicated) but otherwise keep
|
|
22
|
+
* their original formatting (RunProperties remain on the parent run).
|
|
23
|
+
* The returned count equals the number of matches actually replaced.
|
|
24
|
+
*/
|
|
25
|
+
import type { DocxDocument } from "../types.js";
|
|
26
|
+
/**
|
|
27
|
+
* Replace text in a document (mutates in place).
|
|
28
|
+
*
|
|
29
|
+
* Performs document-wide text replacement within run content. Matches are
|
|
30
|
+
* applied uniformly whether they fall inside a single run or span several
|
|
31
|
+
* runs; the formatting of each run that survives the replacement is preserved.
|
|
32
|
+
*
|
|
33
|
+
* Traverses body, headers, footers, footnotes, endnotes, comments, tables, and
|
|
34
|
+
* SDTs using the unified document walker. SDTs may carry inline runs without
|
|
35
|
+
* an enclosing paragraph (content controls wrapping a single Run); those
|
|
36
|
+
* inline runs are treated as a single virtual paragraph for replacement.
|
|
37
|
+
*
|
|
38
|
+
* @param doc - The document model to modify (mutated in place).
|
|
39
|
+
* @param search - String or RegExp to find. Both are treated as global
|
|
40
|
+
* (every occurrence is replaced); the `g` flag on a RegExp
|
|
41
|
+
* is therefore optional.
|
|
42
|
+
* @param replacement - Replacement string. When `search` is a RegExp the
|
|
43
|
+
* replacement supports the standard `$1`/`$&`/`$$` etc.
|
|
44
|
+
* backreferences.
|
|
45
|
+
* @returns The exact number of replacements made.
|
|
46
|
+
*/
|
|
47
|
+
export declare function replaceText(doc: DocxDocument, search: string | RegExp, replacement: string): number;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Track Changes — Accept / Reject API
|
|
3
|
+
*
|
|
4
|
+
* Functions for accepting or rejecting tracked changes in a DocxDocument.
|
|
5
|
+
*/
|
|
6
|
+
import type { DocxDocument } from "../types.js";
|
|
7
|
+
/**
|
|
8
|
+
* Accept all tracked changes in a document (mutates in place).
|
|
9
|
+
*
|
|
10
|
+
* - Inserted runs: their content is kept, the `InsertedRun` wrapper is removed.
|
|
11
|
+
* - Deleted runs: their content is removed entirely.
|
|
12
|
+
* - Moved content: moved-to content is kept, moved-from is removed.
|
|
13
|
+
* - Property changes: the new properties are kept, change info is removed.
|
|
14
|
+
*
|
|
15
|
+
* @param doc - The document to modify (mutated in place).
|
|
16
|
+
* @returns Number of revisions accepted.
|
|
17
|
+
*/
|
|
18
|
+
export declare function acceptAllRevisions(doc: DocxDocument): number;
|
|
19
|
+
/**
|
|
20
|
+
* Reject all tracked changes in a document (mutates in place).
|
|
21
|
+
*
|
|
22
|
+
* - Inserted runs: removed entirely (content was not in original).
|
|
23
|
+
* - Deleted runs: their content is kept (restoring original text).
|
|
24
|
+
* - Moved content: moved-from content is kept, moved-to is removed.
|
|
25
|
+
*
|
|
26
|
+
* @param doc - The document to modify (mutated in place).
|
|
27
|
+
* @returns Number of revisions rejected.
|
|
28
|
+
*/
|
|
29
|
+
export declare function rejectAllRevisions(doc: DocxDocument): number;
|
|
30
|
+
/** A revision found in the document, with its location and metadata. */
|
|
31
|
+
export interface RevisionEntry {
|
|
32
|
+
/** Unique revision id (from w:ins/w:del/w:moveFrom/w:moveTo @id). */
|
|
33
|
+
readonly id: number;
|
|
34
|
+
/** Revision type. */
|
|
35
|
+
readonly type: "insert" | "delete" | "moveFrom" | "moveTo" | "rowInsert" | "rowDelete" | "cellMerge" | "tablePropertyChange" | "rowPropertyChange" | "cellPropertyChange" | "paragraphPropertyChange" | "runPropertyChange";
|
|
36
|
+
/** Author of the revision. */
|
|
37
|
+
readonly author?: string;
|
|
38
|
+
/** Date of the revision (ISO 8601 string). */
|
|
39
|
+
readonly date?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* List all tracked changes in a document.
|
|
43
|
+
*
|
|
44
|
+
* Walks the document body, headers, footers, footnotes, endnotes, and comments
|
|
45
|
+
* collecting all `RevisionInfo`-bearing nodes (insertions, deletions, moves,
|
|
46
|
+
* property changes).
|
|
47
|
+
*
|
|
48
|
+
* @param doc - The document to scan.
|
|
49
|
+
* @returns Array of revision entries.
|
|
50
|
+
*/
|
|
51
|
+
export declare function listRevisions(doc: DocxDocument): RevisionEntry[];
|
|
52
|
+
/**
|
|
53
|
+
* Accept a single revision by id (mutates in place).
|
|
54
|
+
*
|
|
55
|
+
* @param doc - The document to modify.
|
|
56
|
+
* @param revisionId - The revision id to accept.
|
|
57
|
+
* @returns true if the revision was found and accepted, false otherwise.
|
|
58
|
+
*/
|
|
59
|
+
export declare function acceptRevision(doc: DocxDocument, revisionId: number): boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Reject a single revision by id (mutates in place).
|
|
62
|
+
*
|
|
63
|
+
* @param doc - The document to modify.
|
|
64
|
+
* @param revisionId - The revision id to reject.
|
|
65
|
+
* @returns true if the revision was found and rejected, false otherwise.
|
|
66
|
+
*/
|
|
67
|
+
export declare function rejectRevision(doc: DocxDocument, revisionId: number): boolean;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document Search & Query API (read-only helpers)
|
|
3
|
+
*
|
|
4
|
+
* Functions for searching, counting, and extracting text from a DocxDocument.
|
|
5
|
+
*/
|
|
6
|
+
import type { DocxDocument, Paragraph, Table, Hyperlink, BookmarkStart, CommentDef, ImageDef, SectionProperties } from "../types.js";
|
|
7
|
+
/** Result of a text search in a document. */
|
|
8
|
+
export interface SearchResult {
|
|
9
|
+
/**
|
|
10
|
+
* The paragraph's visit order across the entire document, counting
|
|
11
|
+
* paragraphs reachable from the body (including those nested in tables,
|
|
12
|
+
* SDTs, text boxes, headers, footers, footnotes, endnotes and TOC
|
|
13
|
+
* caches) in walk order.
|
|
14
|
+
*
|
|
15
|
+
* This is **not** an index into `doc.body`: nested paragraphs are
|
|
16
|
+
* counted too. Use it as a stable ordinal for ordering results, not
|
|
17
|
+
* for direct array access.
|
|
18
|
+
*/
|
|
19
|
+
readonly paragraphIndex: number;
|
|
20
|
+
/** The matched text. */
|
|
21
|
+
readonly match: string;
|
|
22
|
+
/** Character offset within the paragraph's concatenated text. */
|
|
23
|
+
readonly offset: number;
|
|
24
|
+
}
|
|
25
|
+
/** A heading extracted from a document. */
|
|
26
|
+
export interface DocumentHeading {
|
|
27
|
+
/** Heading level (1-9). */
|
|
28
|
+
readonly level: number;
|
|
29
|
+
/** Plain text of the heading. */
|
|
30
|
+
readonly text: string;
|
|
31
|
+
/** Index into doc.body where the paragraph resides. */
|
|
32
|
+
readonly paragraphIndex: number;
|
|
33
|
+
/** Style ID used (e.g. "Heading1"). */
|
|
34
|
+
readonly style?: string;
|
|
35
|
+
}
|
|
36
|
+
/** A section definition found in the document. */
|
|
37
|
+
export interface DocumentSection {
|
|
38
|
+
/** The section properties. */
|
|
39
|
+
readonly properties: SectionProperties;
|
|
40
|
+
/** Index of the paragraph containing this section break (or -1 for the final section). */
|
|
41
|
+
readonly paragraphIndex: number;
|
|
42
|
+
/** Whether this is the final section (from doc.sectionProperties). */
|
|
43
|
+
readonly isFinal: boolean;
|
|
44
|
+
}
|
|
45
|
+
/** Extract concatenated plain text from a paragraph's runs. */
|
|
46
|
+
export declare function paragraphText(para: Paragraph): string;
|
|
47
|
+
/**
|
|
48
|
+
* Count all top-level paragraphs in the document body.
|
|
49
|
+
*/
|
|
50
|
+
export declare function paragraphCount(doc: DocxDocument): number;
|
|
51
|
+
/**
|
|
52
|
+
* Count words across all paragraphs in the document body.
|
|
53
|
+
* Uses simple whitespace splitting; for East Asian text, each CJK character
|
|
54
|
+
* is counted as one "word" to approximate meaningful unit count.
|
|
55
|
+
*/
|
|
56
|
+
export declare function countWords(doc: DocxDocument): number;
|
|
57
|
+
/**
|
|
58
|
+
* Extract the heading outline from a document.
|
|
59
|
+
*
|
|
60
|
+
* Matches paragraphs whose style is `Heading1` through `Heading9` (case-insensitive),
|
|
61
|
+
* or whose `outlineLevel` property is set (0-8).
|
|
62
|
+
*/
|
|
63
|
+
export declare function getHeadings(doc: DocxDocument): DocumentHeading[];
|
|
64
|
+
/**
|
|
65
|
+
* Find a bookmark by name.
|
|
66
|
+
*
|
|
67
|
+
* @returns The bookmark start marker + its location, or `undefined` if not found.
|
|
68
|
+
*/
|
|
69
|
+
export declare function findBookmark(doc: DocxDocument, name: string): {
|
|
70
|
+
bookmark: BookmarkStart;
|
|
71
|
+
paragraphIndex: number;
|
|
72
|
+
childIndex: number;
|
|
73
|
+
} | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Find a comment by its ID.
|
|
76
|
+
*/
|
|
77
|
+
export declare function findComment(doc: DocxDocument, id: number): CommentDef | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* List all images registered in the document.
|
|
80
|
+
*/
|
|
81
|
+
export declare function listImages(doc: DocxDocument): readonly ImageDef[];
|
|
82
|
+
/**
|
|
83
|
+
* List all tables in the document.
|
|
84
|
+
*
|
|
85
|
+
* By default this returns **all** tables in the document body (including
|
|
86
|
+
* tables nested inside other tables, SDTs, text boxes, and TOC cached
|
|
87
|
+
* paragraphs). For top-level only behavior pass `{ topLevelOnly: true }`.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* listTables(doc) // all tables (consistent with tableCount)
|
|
91
|
+
* listTables(doc, { topLevelOnly: true }) // direct children of body only
|
|
92
|
+
*/
|
|
93
|
+
export declare function listTables(doc: DocxDocument, options?: {
|
|
94
|
+
readonly topLevelOnly?: boolean;
|
|
95
|
+
}): readonly Table[];
|
|
96
|
+
/**
|
|
97
|
+
* Collect all hyperlinks in the document body.
|
|
98
|
+
*/
|
|
99
|
+
export declare function listHyperlinks(doc: DocxDocument): readonly Hyperlink[];
|
|
100
|
+
/**
|
|
101
|
+
* Get the total number of tables (top-level) and nested tables.
|
|
102
|
+
*/
|
|
103
|
+
export declare function tableCount(doc: DocxDocument): number;
|
|
104
|
+
/**
|
|
105
|
+
* List all sections in a document.
|
|
106
|
+
*
|
|
107
|
+
* Sections are defined by section breaks within paragraph properties
|
|
108
|
+
* and the final section at the document level.
|
|
109
|
+
*
|
|
110
|
+
* @param doc - The document to inspect.
|
|
111
|
+
* @returns Array of section definitions in document order.
|
|
112
|
+
*/
|
|
113
|
+
export declare function listSections(doc: DocxDocument): DocumentSection[];
|
|
114
|
+
/**
|
|
115
|
+
* Extract plain text from the entire document: body, headers, footers,
|
|
116
|
+
* footnotes, and endnotes.
|
|
117
|
+
*
|
|
118
|
+
* Paragraphs are separated by `\n`. Tables render as tab-separated cell text.
|
|
119
|
+
*/
|
|
120
|
+
export declare function extractText(doc: DocxDocument): string;
|
|
121
|
+
/**
|
|
122
|
+
* Search for text occurrences across the entire document: body, tables, SDTs,
|
|
123
|
+
* headers, footers, footnotes, and endnotes.
|
|
124
|
+
*
|
|
125
|
+
* @param doc - The document model to search.
|
|
126
|
+
* @param query - String or RegExp to search for.
|
|
127
|
+
* @returns Array of search results.
|
|
128
|
+
*/
|
|
129
|
+
export declare function searchText(doc: DocxDocument, query: string | RegExp): SearchResult[];
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document Split API
|
|
3
|
+
*
|
|
4
|
+
* Split a single DocxDocument into multiple documents based on
|
|
5
|
+
* sections, page breaks, or heading levels.
|
|
6
|
+
*/
|
|
7
|
+
import type { DocxDocument } from "../types.js";
|
|
8
|
+
/** Options for splitting a document. */
|
|
9
|
+
export interface SplitOptions {
|
|
10
|
+
/**
|
|
11
|
+
* Split criteria.
|
|
12
|
+
*
|
|
13
|
+
* - `"section"` — split at every section break (paragraph with `sectionProperties`).
|
|
14
|
+
* - `"pageBreak"` — split at every explicit page break (run with `breakType: "page"`).
|
|
15
|
+
* - `"heading"` — split at every Heading 1 paragraph (or `headingLevel`).
|
|
16
|
+
*
|
|
17
|
+
* Default: `"section"`.
|
|
18
|
+
*/
|
|
19
|
+
readonly by?: "section" | "pageBreak" | "heading";
|
|
20
|
+
/**
|
|
21
|
+
* Heading level to split on (only used when `by: "heading"`).
|
|
22
|
+
* Default: 1 (Heading 1).
|
|
23
|
+
*/
|
|
24
|
+
readonly headingLevel?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Whether each split document keeps the original document's
|
|
27
|
+
* styles, numbering, settings, fonts, etc.
|
|
28
|
+
* Default: true.
|
|
29
|
+
*/
|
|
30
|
+
readonly preserveSharedParts?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Split a DocxDocument into multiple documents.
|
|
34
|
+
*
|
|
35
|
+
* Each resulting document is a complete, valid DocxDocument with body content
|
|
36
|
+
* from one segment of the original. Headers, footers, footnotes, endnotes,
|
|
37
|
+
* comments, styles, numbering, and settings are preserved in each split unless
|
|
38
|
+
* `preserveSharedParts: false` is specified.
|
|
39
|
+
*
|
|
40
|
+
* @param doc - The document to split.
|
|
41
|
+
* @param options - Split criteria.
|
|
42
|
+
* @returns Array of split documents (at least 1).
|
|
43
|
+
*/
|
|
44
|
+
export declare function splitDocument(doc: DocxDocument, options?: SplitOptions): DocxDocument[];
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Style Resolution (Effective/Computed Style)
|
|
3
|
+
*
|
|
4
|
+
* Resolve the effective style for a paragraph by walking the style inheritance chain.
|
|
5
|
+
*/
|
|
6
|
+
import type { DocxDocument, Paragraph, ParagraphProperties, Run, RunProperties, TableLook, TableProperties } from "../types.js";
|
|
7
|
+
/** Context for style resolution when a paragraph is inside a table. */
|
|
8
|
+
export interface StyleResolveContext {
|
|
9
|
+
/** If the paragraph is inside a table, provide table context. */
|
|
10
|
+
readonly tableContext?: {
|
|
11
|
+
readonly tableStyleId?: string;
|
|
12
|
+
readonly tblLook?: TableLook;
|
|
13
|
+
readonly rowIndex: number;
|
|
14
|
+
readonly colIndex: number;
|
|
15
|
+
readonly totalRows: number;
|
|
16
|
+
readonly totalCols: number;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/** Resolved paragraph properties with all inherited values merged. */
|
|
20
|
+
export interface ResolvedParagraphStyle {
|
|
21
|
+
/** The style chain (from most specific to base). */
|
|
22
|
+
readonly chain: readonly string[];
|
|
23
|
+
/** Merged paragraph properties (inherited + own). */
|
|
24
|
+
readonly paragraphProperties: ParagraphProperties;
|
|
25
|
+
/** Merged run properties (inherited + own). */
|
|
26
|
+
readonly runProperties: RunProperties;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Resolve the effective (computed) style for a paragraph by walking the style inheritance chain.
|
|
30
|
+
*
|
|
31
|
+
* Merges properties from the document defaults → base style chain → table conditional formats → paragraph's own properties.
|
|
32
|
+
*
|
|
33
|
+
* @param doc - The document containing styles and defaults.
|
|
34
|
+
* @param para - The paragraph to resolve styles for.
|
|
35
|
+
* @param context - Optional context providing table position for conditional format overlay.
|
|
36
|
+
* @returns The fully resolved paragraph style with all inherited properties merged.
|
|
37
|
+
*/
|
|
38
|
+
export declare function resolveStyle(doc: DocxDocument, para: Paragraph, context?: StyleResolveContext): ResolvedParagraphStyle;
|
|
39
|
+
/** Resolved run style with full inheritance chain. */
|
|
40
|
+
export interface ResolvedRunStyle {
|
|
41
|
+
/** Style chain (most specific → base). */
|
|
42
|
+
readonly chain: readonly string[];
|
|
43
|
+
/** Merged run properties. */
|
|
44
|
+
readonly runProperties: RunProperties;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Resolve the effective style for a single Run by walking the character
|
|
48
|
+
* style inheritance chain.
|
|
49
|
+
*
|
|
50
|
+
* Resolution order (low → high specificity):
|
|
51
|
+
* 1. Document defaults
|
|
52
|
+
* 2. Paragraph's resolved style (if `paragraphRunProperties` provided)
|
|
53
|
+
* 3. Run's character style chain (if `run.properties.style` is set)
|
|
54
|
+
* 4. Run's own direct properties
|
|
55
|
+
*
|
|
56
|
+
* @param doc - The document containing styles.
|
|
57
|
+
* @param run - The run to resolve.
|
|
58
|
+
* @param paragraphRunProperties - Optional inherited run properties from the
|
|
59
|
+
* parent paragraph's resolved style. Pass `resolveStyle(doc, para).runProperties`
|
|
60
|
+
* to layer the paragraph style on top of doc defaults.
|
|
61
|
+
* @returns The fully resolved run style.
|
|
62
|
+
*/
|
|
63
|
+
export declare function resolveRunStyle(doc: DocxDocument, run: Run, paragraphRunProperties?: RunProperties): ResolvedRunStyle;
|
|
64
|
+
/** Resolved numbering level information. */
|
|
65
|
+
export interface ResolvedNumberingLevel {
|
|
66
|
+
/** The level index (0-8). */
|
|
67
|
+
readonly level: number;
|
|
68
|
+
/** Number format. */
|
|
69
|
+
readonly format?: string;
|
|
70
|
+
/** Level text template (e.g. `"%1."`). */
|
|
71
|
+
readonly text?: string;
|
|
72
|
+
/** Justification. */
|
|
73
|
+
readonly justification?: string;
|
|
74
|
+
/** Run properties for the numbering text itself (bullet/number marker). */
|
|
75
|
+
readonly runProperties?: RunProperties;
|
|
76
|
+
/** Paragraph properties from the level (indent, alignment, etc.). */
|
|
77
|
+
readonly paragraphProperties?: ParagraphProperties;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Resolve the numbering level for a paragraph that has a numbering reference.
|
|
81
|
+
*
|
|
82
|
+
* Walks: paragraph.numbering → numberingInstances → abstractNumberings → level definition.
|
|
83
|
+
* Also applies `LevelOverride` if present.
|
|
84
|
+
*
|
|
85
|
+
* @param doc - The document.
|
|
86
|
+
* @param para - The paragraph (must have `numbering` set).
|
|
87
|
+
* @returns The resolved level, or undefined if no numbering or level not found.
|
|
88
|
+
*/
|
|
89
|
+
export declare function resolveNumberingLevel(doc: DocxDocument, para: Paragraph): ResolvedNumberingLevel | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Resolve table-level styles for a given table.
|
|
92
|
+
*
|
|
93
|
+
* Walks the table style inheritance chain (basedOn) to merge table properties.
|
|
94
|
+
*
|
|
95
|
+
* @param doc - The document.
|
|
96
|
+
* @param tableStyleId - The starting table style ID.
|
|
97
|
+
* @returns The merged table-level style chain.
|
|
98
|
+
*/
|
|
99
|
+
export declare function resolveTableStyle(doc: DocxDocument, tableStyleId: string): {
|
|
100
|
+
chain: string[];
|
|
101
|
+
paragraphProperties: ParagraphProperties;
|
|
102
|
+
runProperties: RunProperties;
|
|
103
|
+
tableProperties?: TableProperties;
|
|
104
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Reader - Chart Parser (c: and cx: namespaces)
|
|
3
|
+
*
|
|
4
|
+
* Parses traditional and ChartEx (Microsoft 365) chart XML into Chart model
|
|
5
|
+
* objects. Also resolves chart references in the document body, replacing
|
|
6
|
+
* opaque chart drawings with parsed Chart instances.
|
|
7
|
+
*/
|
|
8
|
+
import type { BodyContent, Chart, ChartExContent, ChartExData } from "../types.js";
|
|
9
|
+
/** Replace OpaqueDrawing items referencing chart rIds with ChartContent. */
|
|
10
|
+
declare function replaceOpaqueCharts(body: BodyContent[], chartRIdToChart: Map<string, Chart>): void;
|
|
11
|
+
/** Replace OpaqueDrawing items referencing ChartEx rIds with ChartExContent. */
|
|
12
|
+
declare function replaceOpaqueChartExDrawings(body: BodyContent[], chartExRIdToContent: Map<string, ChartExContent>): void;
|
|
13
|
+
/** Parse a chart part XML string into a Chart object. */
|
|
14
|
+
declare function parseChartXml(xmlStr: string): Chart | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Parse a ChartEx XML string (cx:chartSpace) into structured ChartExData.
|
|
17
|
+
* Returns undefined if parsing fails or the structure is unrecognizable.
|
|
18
|
+
*/
|
|
19
|
+
declare function parseChartExXml(xmlStr: string): ChartExData | undefined;
|
|
20
|
+
export { replaceOpaqueCharts, replaceOpaqueChartExDrawings, parseChartXml, parseChartExXml };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX reader — comments parsers.
|
|
3
|
+
*
|
|
4
|
+
* Split out from `docx-reader.ts` to keep that file's part-orchestration
|
|
5
|
+
* scope manageable. We accept `parseParagraph` as an injected dependency
|
|
6
|
+
* because the body paragraph parser still lives in `docx-reader.ts` (it
|
|
7
|
+
* has many cross-references that would not be cheap to disentangle); a
|
|
8
|
+
* direct import would form a cycle.
|
|
9
|
+
*/
|
|
10
|
+
import type { XmlElement } from "../../xml/types.js";
|
|
11
|
+
import type { CommentDef, Paragraph } from "../types.js";
|
|
12
|
+
import { type ReaderContext } from "./reader-context.js";
|
|
13
|
+
/** Parse `word/comments.xml` into a list of CommentDef. */
|
|
14
|
+
export declare function parseCommentsXml(xmlStr: string, ctx: ReaderContext, parseParagraph: (el: XmlElement, ctx: ReaderContext) => Paragraph): CommentDef[];
|
|
15
|
+
/**
|
|
16
|
+
* Parse `word/commentsExtended.xml` into a paraId → metadata map.
|
|
17
|
+
*
|
|
18
|
+
* Modern Word stores comment "resolved" state and reply threading in a
|
|
19
|
+
* sidecar part keyed by the paragraph id of each comment's first
|
|
20
|
+
* paragraph. The reader merges this map into `CommentDef.done` /
|
|
21
|
+
* `CommentDef.parentId` once both parts have been parsed.
|
|
22
|
+
*/
|
|
23
|
+
export declare function parseCommentsExtendedXml(xmlStr: string): Map<string, {
|
|
24
|
+
done?: boolean;
|
|
25
|
+
parentId?: string;
|
|
26
|
+
}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Reader - Document Properties Parsers
|
|
3
|
+
*
|
|
4
|
+
* Parses standard OPC document properties XML files:
|
|
5
|
+
* - docProps/core.xml (CoreProperties — title, author, dc:* fields)
|
|
6
|
+
* - docProps/app.xml (AppProperties — application info)
|
|
7
|
+
* - docProps/custom.xml (CustomProperty[] — user-defined name/value pairs)
|
|
8
|
+
* - word/fontTable.xml (FontDef[] — embedded font references)
|
|
9
|
+
*/
|
|
10
|
+
import type { AppProperties, CoreProperties, CustomProperty, FontDef } from "../types.js";
|
|
11
|
+
declare function parseCoreProps(xmlStr: string): CoreProperties;
|
|
12
|
+
declare function parseAppProps(xmlStr: string): AppProperties;
|
|
13
|
+
declare function parseCustomPropsXml(xmlStr: string): CustomProperty[];
|
|
14
|
+
declare function parseFontTableXml(xmlStr: string): FontDef[];
|
|
15
|
+
export { parseCoreProps, parseAppProps, parseCustomPropsXml, parseFontTableXml };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Module - Reader / Parser
|
|
3
|
+
*
|
|
4
|
+
* Reads a DOCX ZIP file and parses it into a DocxDocument model.
|
|
5
|
+
* Uses the archive module for ZIP reading and XML module for parsing.
|
|
6
|
+
*/
|
|
7
|
+
import { type WordSecurityPolicy } from "../security/policy.js";
|
|
8
|
+
import type { DocxDocument } from "../types.js";
|
|
9
|
+
/** Options for reading a DOCX file. */
|
|
10
|
+
export interface ReadDocxOptions {
|
|
11
|
+
/** Password for decrypting an encrypted DOCX file. */
|
|
12
|
+
readonly password?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Optional security policy that controls hard limits enforced while reading
|
|
15
|
+
* the package (max total size, max single-part size, max part count). Falls
|
|
16
|
+
* back to {@link DEFAULT_SECURITY_POLICY} when omitted. Helpful as a
|
|
17
|
+
* defense-in-depth control against ZIP bombs / pathological inputs.
|
|
18
|
+
*/
|
|
19
|
+
readonly securityPolicy?: WordSecurityPolicy;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Read a DOCX file from a Uint8Array buffer and parse it into a DocxDocument model.
|
|
23
|
+
*
|
|
24
|
+
* If the file is encrypted (CFB format), provide a password via the options parameter
|
|
25
|
+
* to decrypt it automatically.
|
|
26
|
+
*/
|
|
27
|
+
export declare function readDocx(buffer: Uint8Array, options?: ReadDocxOptions): Promise<DocxDocument>;
|