Hiyve Components - v1.0.0
    Preparing search index...

    Variable whiteboardPdfDownloadHandlerConst

    whiteboardPdfDownloadHandler: {
        name: string;
        canHandle(file: WhiteboardPdfFile): boolean;
        download<TFile extends WhiteboardPdfFile>(
            __namedParameters: WhiteboardPdfDownloadContext<TFile>,
        ): Promise<{ blob: Blob; fileName: string } | undefined>;
    } = ...

    Download handler that turns a whiteboard into a PDF.

    Compatible with the file manager's DownloadHandler contract — pass it in the downloadHandlers prop so downloading a board gives the reader a picture of it rather than the document it is stored as:

    import { whiteboardPdfDownloadHandler } from '@hiyve/react-whiteboard';

    <FileManager downloadHandlers={[whiteboardPdfDownloadHandler]} />

    Returns undefined if the board cannot be rendered, which lets the file manager fall back to downloading the stored file.

    Type Declaration