Custom Components

UniverPdfsUIPlugin assembles the PDF interface from standard Univer workbench parts.

ModeComponents mounted by the PDF UI plugin
editor.enabled: falseA single continuous, virtualized read-only page view in the content area.
editor.enabled: truePage-thumbnail rail in the left sidebar, PDF canvas, PDF footer, ribbon and context-menu items, properties inspector, clipboard integration, insertion controls, and editor-only menu components.

Setting editor.enabled to false mounts the read-only view and removes every editor-only part, including the thumbnail rail, footer, ribbon, inspector, and the Print action. The mobile plugin additionally mounts a mobile top bar and menu layout.

PDF component boundary

The React views and component identifiers behind the PDF canvas, thumbnail rail, footer, inspector, table picker, and tool-mode label are internal implementation details. They are not exported from the @univerjs-pro/pdfs-ui root entry, and they are not supported replacement slots.

Do not infer or copy an internal component key to replace these views through univerAPI.registerComponent. For supported PDF behavior, use the PDF Facade guide.

Add application-level UI beside a PDF

The shared UI Facade can still register an application component and display it in a regular Univer sidebar or dialog. This extends the surrounding application and does not replace a component of the PDF plugin.

TSX
const registration = univerAPI.registerComponent(  'pdf-help-panel',  () => <div>PDF workflow help</div>,)const sidebar = univerAPI.openSidebar({  id: 'pdf-help',  header: { title: 'PDF help' },  children: { label: 'pdf-help-panel' },  width: 320,})// When the extension is no longer needed:sidebar.dispose()registration.dispose()

Register the component after the UI Facade has loaded, and dispose both handles when the extension is removed.

How is this guide?

© 2026 DreamNum Co., Ltd.