0.4.0 • Published 10 months ago

@ooxml-tools/render v0.4.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Render Office Open XML files in native applications (word, pages, etc...)

Support for rendering

This tool can be used as a part of visual regression for various editors

Support

  • .docx
    • msword — ✅ macos / 🔜 win
    • pages — ✅ macos
    • libreoffice — ✅ macos / 🔜 linux / 🔜 win
    • googledocs — 🔜
    • onedrive — 🔜
  • .pptx
    • powerpoint — 🔜 macos / 🔜 win
    • keynote — ✅ macos
    • libreoffice — ✅ macos / 🔜 linux / 🔜 win
    • googledocs — 🔜
    • onedrive — 🔜
  • .xlsx
    • excel — 🔜 macos / 🔜 win
    • numbers — ✅ macos
    • libreoffice — ✅ macos / 🔜 linux / 🔜 win
    • googledocs — 🔜
    • onedrive — 🔜

Requirements

You must have the apps you wish to use above installed on your machine.

We use imagemagick for converting PDFs created from the various editors. So you must either have the imagemagick CLI installed locally or docker/docker-compose installed on your machine.

Usage

import render from "@ooxml-tools/render";

const input = await readFile("./test.docx");
const outputDir = "./output/";
await render(input, ["msword"], { outputDir });

CLI

npx @ooxml-tools/render --help
# ooxml-render <command> [args]
#
# Commands:
#   render <filepath>   render files
#   support <filepath>  list supported apps for <filepath>
#
# Options:
#   --version  Show version number                                       [boolean]
#   --help     Show help                                                 [boolean]

License

MIT

0.4.0

10 months ago

0.3.4

11 months ago

0.3.3

11 months ago

0.3.2

11 months ago

0.3.1

11 months ago

0.3.0

11 months ago

0.2.3

11 months ago

0.2.2

11 months ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago