Univer
Univer Sheet
Features
Print

Print

📊 Univer Sheet
🏆

This feature contains closed-source code, allowing any user to use it for free. It also includes an optional business upgrade plan that provides richer features and services.

💻

This feature depends on the Univer backend service. Please make sure you have read the related documentation and completed the deployment before using it.

Univer provides high-precision printing functions, supporting print preview, print settings, and export to PDF.

Installation

pnpm add @univerjs-pro/sheets-print

Import

import '@univerjs-pro/sheets-print/lib/index.css';
 
import { SheetsPrintPlugin } from '@univerjs-pro/sheets-print'

Internationalization

import { LocaleType, Tools } from '@univerjs/core';
import SheetsPrintPluginEnUS from '@univerjs-pro/sheets-print/locale/en-US';
 
const univer = new Univer({
  theme: defaultTheme,
  locale: LocaleType.EN_US,
  locales: {
    [LocaleType.EN_US]: Tools.deepMerge(
      SheetsPrintPluginEnUS
    ),
  },
});

Register

univer.registerPlugin(SheetsPrintPluginEnUS);

Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.