@univerjs-pro/pdfs-print
이 API 페이지의 본문은 현재 영어로 제공됩니다. 코드 시그니처와 식별자는 언어에 따라 바뀌지 않습니다.
Add browser printing for the active Univer PDF through the PDF ribbon and menu. This package requires a browser environment and UniverPdfsUIPlugin.
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.
이 가이드는 어떠셨나요?