跳到正文
DEV Community· halsen turing·· 56 分鐘前AI 評分42

OmniDoc 為何把每份 Office 文件轉換成 HTML 網頁

Documents that are web pages: why we render every Office file as HTML

AI 導讀

OmniDoc 把 Office 文件轉換成 HTML,讓文件能以網頁形式呈現,並保留版面或互動內容。PDF 在 OmniDoc Desktop 中約 1 秒即可轉成 HTML;Word、Excel 和 Markdown 可匯出無損 HTML,PowerPoint 則可匯出成在瀏覽器播放的投影片。

正文

halsen turing

Written by the OmniDoc team about our own product, OmniDoc (至译).

Word files, slide decks and PDFs are digital paper: lay it out, print it, done. But almost all reading now happens on screens, and the most capable layout and interaction technology on a screen is HTML. So OmniDoc renders every Office file as HTML.

The document is the web page

UniDoc is the document editor in OmniDoc. Its native format, .udoc, is also a web page:

  • charts, animations, flowcharts, tabs and equations sit right in the document;
  • you edit it like a Word file;
  • you publish it as a link that stays interactive, and a browser is all a reader needs;
  • you export Word, PDF or lossless HTML for people who use other office software.

Example: a document about black-body radiation has a temperature slider. Drag it, and the Planck curve, the peak wavelength and the numbers in the text are recalculated together. Hard on paper, natural on the web.

The other Office files too

  • PDF becomes HTML in about a second in OmniDoc Desktop, with the layout unchanged and text you can select and copy.
  • Word, Excel and Markdown export to lossless HTML.
  • PowerPoint exports as a web page that plays as a slide show in the browser.

Conversion runs offline and uses no credits, and the result can be published as a link in one click.

Is a web engine fast enough?

The editors run in a web engine, but layout and export use native engines on your computer: about 9 ms from keystroke to layout, 11 s to export a large Word file, about 1 s from PDF to HTML.

Let AI write a document that moves

HTML is also friendlier to AI. OmniDoc Desktop includes an MCP server: Claude, Cursor and other assistants create and edit .udoc documents through it and export lossless HTML, Word and PDF in the same call. Charts, animations, flowcharts and equations come out in one go.

Limits

Dynamic content needs a suitable runtime. Opened offline, content that depends on outside services may not update, and printing or exporting a PDF shows a static view.

Try it

Written with AI assistance and reviewed by the OmniDoc team.

來源:DEV Community · dev.to