Const
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:
DownloadHandler
downloadHandlers
import { whiteboardPdfDownloadHandler } from '@hiyve/react-whiteboard';<FileManager downloadHandlers={[whiteboardPdfDownloadHandler]} /> Copy
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.
undefined
Download handler that turns a whiteboard into a PDF.
Compatible with the file manager's
DownloadHandlercontract — pass it in thedownloadHandlersprop so downloading a board gives the reader a picture of it rather than the document it is stored as:Returns
undefinedif the board cannot be rendered, which lets the file manager fall back to downloading the stored file.