API 참조

@univerjs-pro/pdfs-exchange-client

이 API 페이지의 본문은 현재 영어로 제공됩니다. 코드 시그니처와 식별자는 언어에 따라 바뀌지 않습니다.

PDF import and export client integration for Web SDK.

TypeScript
import { UniverPdfsExchangeClientPlugin } from '@univerjs-pro/pdfs-exchange-client'univer.registerPlugin(UniverPdfsExchangeClientPlugin)

The plugin config accepts an optional menu value, which is merged into the shared Univer menu configuration. The root entry exports PdfsExchangeClientMenuSchema and IPdfExchangeService for custom integrations, but not the config type.

Entry points

  • Facade: @univerjs-pro/pdfs-exchange-client/facade
  • Locale: @univerjs-pro/pdfs-exchange-client/locale/*

Facade API

TypeScript
import '@univerjs-pro/pdfs-exchange-client/facade'importPdfToUnitIdAsync(file: File | string): Promise<string | undefined>importPdfToSnapshotAsync(file: File | string): Promise<IPdfUnitData | undefined>exportPdfByUnitIdAsync(unitId: string): Promise<File | undefined>exportPdfBySnapshotAsync(snapshot: IPdfUnitData): Promise<File | undefined>transformSnapshotJsonToPdfDataAsync(json: ISnapshotBlockJsonResponse): Promise<IPdfUnitData>transformPdfDataToSnapshotJsonAsync(pdfData: IPdfUnitData): Promise<ISnapshotBlockJson>

Import @univerjs-pro/exchange-client/facade as well when using the shared downloadFile(file, filename, fileExt) helper. See PDF import and export for the complete workflow.

이 가이드는 어떠셨나요?

© 2026 DreamNum Co., Ltd.