Справочник 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 root entry exports IPdfExchangeService for custom integrations. The plugin currently has no configurable options.

Entry points

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

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.