OpenDocument (ODT, ODS, ODP)
Show LibreOffice and OpenOffice files (ODT text, ODS spreadsheets, ODP presentations) in React, drawn by the same engines as Word, Excel and PowerPoint.
OpenDocument files are read by their own parsers and mapped onto the Word, Excel and PowerPoint models, so they get the same layout, grid and slide renderers, including search, thumbnails and printing.
Text documents (ODT)
Page styles, headers and footers, paragraph and text styles, lists with ODF numbering, tables, images, text boxes, links, notes, page number fields, and annotations shown as comments.
Spreadsheets (ODS)
Sheets, column widths, cell styles, merges, and typed values shown with LibreOffice's formatted text. Huge runs of repeated empty rows are trimmed.
Presentations (ODP)
Master pages, backgrounds, text boxes, lists, images, tables, LibreOffice custom shapes (enhanced geometry formulas), lines and connectors, groups, notes and transitions.
Controller
OpenDocument files use the same renderers as their Office counterparts, so the controller reports exactly what it does for them:
| File | Behaves like | pageKind | Outline | Thumbnails |
|---|---|---|---|---|
| ODT | Word | 'page' | headings | ✓ |
| ODS | Excel | 'sheet' | ||
| ODP | PowerPoint | 'slide' | slide titles | ✓ |
detection.kind tells them apart from Office files ('odt', 'ods', 'odp') if your UI needs to.
Headless
The Word, Excel and PowerPoint examples work unchanged with ODT, ODS and ODP files. Here is the PowerPoint one on an ODP presentation:
Not yet
- Charts and images in ODS spreadsheets.
- Tracked changes in ODT.
Show PDF files in React with pdf.js in a Web Worker, selectable text, search, bookmarks, password prompts and smooth scrolling through 1,000-page documents.
CSV, JSON and XML
Show CSV and TSV tables of up to a million rows, JSON as a collapsible tree and XML with highlighting, in React and in the browser.