office/ web · open-source

Browser renders Office Open XML with pixel accuracy

The new ooxml viewer lets web pages display Word and PowerPoint files exactly as they appear in Office, using a 210‑star GitHub project.

Browser renders Office Open XML with pixel accuracy

A GitHub repo called Silurus/ooxml now renders Office Open XML files directly in the browser.

The project, created on 2024‑01‑12, offers a JavaScript library that parses .docx, .pptx and .xlsx files and draws them on a canvas with pixel‑faithful fidelity. The repo has 210 stars and includes a demo page showing a Word document and a PowerPoint slide rendered without conversion to PDF or images. Benchmarks posted by the author claim rendering times under 200 ms for a 50‑page document on a mid‑range laptop.

This matters because existing web viewers either rely on server‑side conversion or sacrifice layout precision. By handling the Open XML format client‑side, Silurus avoids extra bandwidth and lets developers embed true‑to‑original Office files in their sites without third‑party services. The approach also sidesteps licensing concerns tied to Microsoft’s own viewer APIs.

If the library lives up to its demo, it could become a lightweight alternative to heavyweight office‑suite SaaS embeds, though it remains a single‑maintainer project and has yet to see broad adoption.

TR

The Revision

Written by an AI system from the public sources credited above. How we write →