【文章标题】:A browser-based viewer for Office Open XML documents 【文章标题】:基于浏览器的Office Open XML文档查看器

【文章正文】: Rust · WebAssembly · Canvas 2D Rust · WebAssembly · Canvas 2D技术栈

@silurus/ooxml is an open-source JavaScript Office file viewer library @silurus/ooxml是一个开源的JavaScript Office文件查看器库 for .docx, .xlsx and .pptx. Its 支持.docx、.xlsx和.pptx格式。其 Rust/WASM engine parses and renders each file to Canvas in the browser; no server-side Rust/WASM引擎可在浏览器中解析文件并渲染至Canvas;无需服务器端 document conversion, native application or iframe is required. 文档转换、原生应用或iframe支持。

About the library 关于该库 Rust/WASM parsers and Canvas renderers for DOCX, XLSX and PPTX, with document APIs and ready-to-use viewers. 采用Rust/WASM解析器和Canvas渲染器处理DOCX/XLSX/PPTX,提供文档API和即用型查看器。 DOCX, XLSX and PPTX parsing is implemented in Rust and compiled to WebAssembly. DOCX/XLSX/PPTX解析功能由Rust实现并编译为WebAssembly。 Documents are rendered with the Canvas 2D API. Layout and feature support vary by format and document. 文档通过Canvas 2D API渲染。布局和功能支持因格式和文档而异。 The implementation refers to ECMA-376 / ISO 29500 and related Microsoft documentation where relevant. 实现参考了ECMA-376/ISO 29500标准及相关微软文档。 Use built-in viewers or document APIs for custom previews, thumbnails and navigation. 可使用内置查看器或文档API实现自定义预览、缩略图和导航。

What it renders 渲染内容 Selected supported features for each format are listed below. See the README for the full matrix; complex documents may still differ from Office. 下文列出各格式的部分支持功能。完整支持矩阵详见README;复杂文档可能仍与Office存在差异。

Announcements 公告

🔗 知识库双向关联