API 參考

@univerjs-pro/pdfs-print

此 API 頁面目前提供英文內容。程式碼簽名與識別符不隨介面語言變更。

Add browser printing for the active Univer PDF through the PDF ribbon and menu. On desktop, register UniverPdfsPrintPlugin after UniverPdfsUIPlugin. On mobile, register UniverPdfsMobilePrintPlugin after UniverPdfsMobileUIPlugin to add Print to the mobile menu. Both use the browser print dialog.

Register the plugin

TypeScript
import { UniverPdfsPrintPlugin } from '@univerjs-pro/pdfs-print'import '@univerjs-pro/pdfs-print/lib/index.css'univer.registerPlugin(UniverPdfsPrintPlugin)

The plugin config accepts menu?: MenuConfig[], which is merged into the shared Univer menu configuration. Merge @univerjs-pro/pdfs-print/locale/<locale> into your Univer locale map to localize the print action. The root entry also exports PdfsPrintMenuSchema for menu customization; it does not export the config type or a public print command.

Entry Points

  • Locale: @univerjs-pro/pdfs-print/locale/*
  • Style: @univerjs-pro/pdfs-print/lib/index.css

See Print PDFs for registration and browser behavior.

你覺得這篇文檔如何?

© 2026 DreamNum Co., Ltd.