Pdf Source reference
A PDF document source: a URL for the viewer to fetch, or a file or bytes that are already in memory.
string/URL: fetched by the viewer (seePdfRequestOptions).ArrayBuffer/Uint8Array/Blob(includingFile): read directly, nothing is uploaded.
Strings compare by value; every other source compares by identity, so keep binary sources referentially stable (e.g. in state) to avoid reloading on every render.
Used by
Import
import type { PdfSource } from '@kingtech/react-pdf-viewer';Signature: type PdfSource = string | URL | ArrayBuffer | Uint8Array | Blob
Source
packages/react-pdf-viewer/src/types.ts
Generated from content/react-pdf-viewer/reference/pdf-source.schema.json. Do not edit by hand.