Pdf Document Status reference
Lifecycle status of a document load: idle without a source, loading, ready with a document, or error with a PdfViewerError.
Used by
Import
import type { PdfDocumentStatus } from '@kingtech/react-pdf-viewer';Signature: type PdfDocumentStatus = 'idle' | 'loading' | 'ready' | 'error'
Properties
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
idle | 'idle' | — | No | No source, or an HTTP error that onHttpError handled. |
loading | 'loading' | — | No | Fetching or parsing the document. |
ready | 'ready' | — | No | The document is loaded and pages can render. |
error | 'error' | — | No | Loading failed; the error is available. |
Source
packages/react-pdf-viewer/src/types.ts
Generated from content/react-pdf-viewer/reference/pdf-document-status.schema.json. Do not edit by hand.