In short

This release lets each document choose its regional settings, renders more of what Word puts on a page, and keeps the classic chart renderer out of the first download of documents that have no charts.

  • The regionalFormat option sets the decimal and group separators, built-in dates and month and day names for spreadsheet cells and chart text in XLSX, PPTX and DOCX. By default it follows the browser language.
  • Word page backgrounds (colour, gradient, picture, pattern and background drawings), footnotes placed beneath the text, footnote numbering that restarts on each page, and Word note number formats and separators now render as Word prints them.
  • Word text is shaped in its run language, so language-specific glyph forms appear where the font has them.
  • The classic chart renderer is loaded only when a document has a chart. Documents with charts render as before.
  • Layout fixes for Word tables, text boxes, vertical text, ruby, book-fold printing and Windows hosts; PowerPoint table rows, tabs and gradient text; and Excel formulas, hit testing and charts.
  • The experimental legacy DOC, XLS and PPT readers render many structures they used to reject, and DOC sources support toMarkdown().
  • The deprecated useGoogleFonts option is removed, as announced in v0.90.0; a value still passed is ignored with a warning. Use fonts: [googleFonts()] to load Google Fonts.

Regional formats for numbers and dates

The new regionalFormat load option takes 'auto' (the default) or a BCP 47 language tag. It selects the painted decimal and group separators for . and , in number format codes and for General numbers, built-in formats 14 and 22, the system date and time formats [$-F800] and [$-F400], and the month and day names of date codes without a language tag. It applies to spreadsheet cells, CSV and TSV previews, and charts in XLSX, PPTX and DOCX, in main and worker mode and in Node sessions.

'auto' resolves once at load from navigator.languages, then navigator.language, then the Intl default. It does not read <html lang>, which describes the page content and continues to guide cjkFallback. Each document keeps its own value, so two documents on one page can use different regional formats. An explicit tag is canonicalized; an invalid tag throws TypeError at load. A format code with its own [$-LCID] or language tag keeps that language for month and day names, and OpenDocument number styles keep their own language and country.

In an en-US browser, output is unchanged from v0.90.0. With a French regional format, for example, a General number paints as 1234,5 and built-in format 22 as 25/11/2026 13:05; with ja-JP, untagged mmm paints 1月 instead of Jan.

Paint numbers and dates with German regional settings

import { XlsxViewer } from '@silurus/ooxml/xlsx';

const container = document.querySelector('#sheet') as HTMLElement;
const viewer = new XlsxViewer(container, { regionalFormat: 'de-DE' });
await viewer.load(await file.arrayBuffer());

Word page backgrounds, footnotes and run language

Document backgrounds (w:background) now render when the document turns on background display, as Word prints them: a solid or theme colour, VML gradient, picture, tile and pattern fills, and DrawingML background drawings, painted behind the page border, headers, footers and body. Tiled DrawingML picture fills (a:tile) now render on shapes too, and VML colours written with a palette index resolve to their authored colour.

Footnotes whose section places them beneath the text start below the last body line of the page. Footnote numbering set to restart on each page numbers 1, 2, … on every page, endnotes without a number format use lower-case Roman numerals as in Word, and note separators take Word's default geometry and are laid out outside the section's document grid.

Text is now shaped in the language of its run (w:lang), so OpenType language forms (locl) appear in measurement and paint where the font has them, for example in Chinese, Japanese and Korean text set in a pan-CJK face. Line breaking is unchanged wherever the shaped widths agree. ODT documents opened through the OpenDocument add-on follow the same rule.

Word layout fixes

Table cells and fixed text boxes clip their text, pictures and shapes to the cell or box as Word does, and find, comments and the text layer follow the clipped text; DocxTextRunInfo reports the clip as clips. AutoFit tables resolve their columns from content and preferred widths, interior merged-cell borders and cell spacing are counted, and tables without rows, upright tables in vertical sections and keep-with-next chains paginate where Word places them.

Vertical sections (tbRl, tbLrV) centre their line boxes, set ruby guides upright and resolve anchored drawings in page coordinates; ruby honours w:rubyAlign. Book-fold and two-pages-per-sheet sections are laid out on the authored page with Word's margin and gutter rules. On Windows hosts that grid-fit fonts at small sizes, such as MS Mincho at 11 pt, lines are measured from proportional advances, so they no longer wrap early or add pages.

Further fixes cover footnote placement around tables and multi-column sections, anchored drawings and VML shapes in text boxes and notes, rotated inline drawings, frames, column breaks, continuous section marks, paragraph borders, HTML automatic spacing, header and footer line pitch, and three Japanese documents that failed layout.

PowerPoint, Excel and charts

PowerPoint table rows grow to fit their wrapped text, and multi-column text in a table cell is laid out as one full-width column, as in PowerPoint. Tab stops and the default tab size resolve through the list-style chain, a tab at the start of a line stays alone on that line when nothing fits after its stop, as in PowerPoint, and gradient-filled text runs paint their gradient. Fast slide navigation no longer shows a stale render or media frame on the visible slide.

In Excel workbooks, cells that share a formula now report their own shifted formula, for example in getSelectionContext(). Lines and connectors are hit-tested against their drawn stroke instead of their bounding box.

A classic chart with a line group on a visible secondary category axis now renders instead of showing "Unsupported chart". Funnel and region-map ChartEx charts in XLSX and DOCX are selected as in PPTX, date axes with intervals below one day label each day once, and trendline labels with a position-only layout keep their R² line.

Chart renderer loaded on demand

The classic chart renderer is now a separate chunk of each format that loads when a document shows a chart. There is no new option: documents with charts render exactly as before, and a page, slide or sheet with a chart waits for the chunk before it paints, so no frame is drawn without its charts. Render workers include the chunk, Node imports it from the installed package, and an application bundler emits it with the rest of the package.

The published JavaScript files are also printed without whitespace, which reduces what a page loads when it uses the package without a bundler. Applications that re-bundle the package minify it themselves and are not affected by that change. Current measurements are on the bundle-size page.

Bundle size →

Other fixes and additions

resourceLimits.internalLimitScale raises the internal work, byte and count ceilings by a factor from 1 to 1024 (default 1), for isolated backends with their own timeouts and process recycling. Depth ceilings stay fixed, and resource-limit errors report whether a ceiling is scalable.

The experimental legacy readers now render many structures that used to reject the whole file, among them Word fields, EQ fields, symbols and drawing wrap modes, Excel phonetic guides, cell comments and AutoFilter rows, and PowerPoint concentric shades, pattern and texture fills. Structures without Office evidence still reject with unsupported-content. toMarkdown() now works for .doc files opened with legacyDoc.

Packages with bytes after the end-of-central-directory record, such as a deck saved with a trailing newline, now open. The TIFF codec decodes PackBits-compressed strips. The site publishes /llms.txt, /llms-full.txt and Markdown versions of the API reference for tools and AI agents.

Upgrading

Apart from the deprecated useGoogleFonts option, no public option or method is removed or renamed, and most integrations need no code changes.

In a browser whose language is not English, spreadsheet numbers and dates now follow that language by default: number separators, built-in format 22, the system date and time formats and month and day names in untagged date codes change where v0.90.0 painted the en-US forms. To keep the en-US forms for every reader, pass regionalFormat: 'en-US'; built-in format 14, which already followed the browser language, then uses en-US as well.

The release intentionally changes rendering for Word documents with backgrounds, footnotes beneath the text, per-page footnote numbering, endnotes without a number format, run languages and the layout rules listed above, and for PowerPoint tables whose text overflowed their rows. Applications with pixel baselines should review those differences against the authored document or an Office-produced reference.

Applications that draw DocxTextRunInfo overlays from onTextRun or collectPageRuns() should apply the new clips field, so overlays stop where the clipped text stops. TypeScript users of the low-level model types gain optional fields: categoriesNumeric and categoryOuterLevels on the chart model and rowHeightRule (TableRowHeightRule) on PowerPoint tables.

As announced in v0.90.0, useGoogleFonts is removed from the load option types. A value that is still passed at run time is ignored: it prints the deprecation warning once per JavaScript realm and loads no web fonts, but never throws. Replace useGoogleFonts: true with fonts: [googleFonts()], which sends the same requests, and omit useGoogleFonts: false.

Upgrade @silurus/ooxml-legacy-office and @silurus/ooxml-opendocument together with @silurus/ooxml; their versions must match exactly.

Font sources guide, including migration →

Technical note

Without a bundler on a slow connection, an XLSX sheet discovers its first chart only when the worksheet is parsed, so the chart chunk then loads and that first chart can appear a little later than in v0.90.0, while chart-free workbooks import sooner. DOCX and PPTX start the load when the document loads, so it overlaps the load. Bundlers preload the chunk's dependencies in parallel.

Run languages are applied through the Canvas lang attribute only where the named font family is confirmed to be painting; other spans shape as untagged text, as before. Documents whose only language data is a document default language take slightly longer to lay out than in v0.90.0.

Questions about the change? Start a GitHub discussion ↗︎