Import and export

For export failures, see license error codes and task failure handling.

Plugins Info

Boards supports Mermaid source import and PPTX export through @univerjs-pro/boards-exchange-client.

Supported formats

The table describes the browser APIs on this page. Converting Office files also requires a backend that supports the corresponding document type and format.

ImportExport
Mermaid source text.pptx

Mermaid import inserts source text as Board elements through insertMermaidAsync; it is not an Office file importer. The export APIs produce .pptx and require a conversion backend. They do not provide PPTX import or image and PDF export. Additional export targets registered by the host application are separate capabilities.

Register the Board runtime first

TypeScript
univer.registerPlugin(UniverBoardsPlugin)univer.registerPlugin(UniverBoardsUIPlugin)univer.registerPlugin(UniverBoardsExchangeClientPlugin)

Register optional element plugins before importing data that may contain those elements:

TypeScript
univer.registerPlugin(UniverBoardsTablePlugin)univer.registerPlugin(UniverBoardsTableUIPlugin)univer.registerPlugin(UniverBoardsMindPlugin)univer.registerPlugin(UniverBoardsMindUIPlugin)

Snapshot handoff

For application-level persistence, save and restore the Board snapshot:

TypeScript
const board = univerAPI.getActiveBoard()const snapshot = board.getData()univer.createUnit(UniverInstanceType.UNIVER_BOARD, snapshot)

Interactive exchange

@univerjs-pro/boards-exchange-client registers the Board export and Mermaid import APIs.

TypeScript
import '@univerjs-pro/exchange-client/facade'import '@univerjs-pro/boards-exchange-client/facade'const file = await univerAPI.exportBoardByUnitIdAsync(board.getId())if (file) univerAPI.downloadFile(file, 'board', 'pptx')await board.insertMermaidAsync('flowchart LR\n  A[Draft] --> B[Review]')

Use exportBoardBySnapshotAsync(snapshot) for data that is not attached to a live board. transformSnapshotJsonToBoardDataAsync and transformBoardDataToSnapshotJsonAsync convert the snapshot blocks used by the exchange service.

PPTX export requires a conversion backend that supports Board snapshots, integrated through the Univer Server SDK. The client license is configured separately; registering a browser plugin does not provide conversion endpoints.

Removal of built-in export menus and UI interactions

Note

Starting with version 1.2.0, Univer no longer includes built-in export menus and UI interactions. The underlying services and Facade APIs remain available.

If the application still needs the original export menus and UI interactions, the migration example for built-in export menus and UI interactions demonstrates how to restore them with a custom plugin. The example includes the complete source code, which can be viewed online or downloaded.

How is this guide?

© 2026 DreamNum Co., Ltd.