pdfrx_web
    Preparing search index...

    Interface PdfTextAssetCache

    Cache shared by downloadable text-appearance assets.

    interface PdfTextAssetCache {
        get(key: string): Promise<Uint8Array<ArrayBufferLike> | null>;
        put(key: string, data: Uint8Array): Promise<void>;
    }

    Implemented by

    Index
    • Reads an asset without exposing the cache's mutable backing storage.

      Parameters

      • key: string

        The stable asset key.

      Returns Promise<Uint8Array<ArrayBufferLike> | null>

      A copy of the cached bytes, or null on a cache miss.

    • Stores a copy of an asset.

      Parameters

      • key: string

        The stable asset key.

      • data: Uint8Array

        The bytes to cache.

      Returns Promise<void>

      A promise that resolves after the write completes.