Copy

CanvasToSvg

Replaces a live canvas with vector SVG when the source library can export it.

ON_THIS_PAGE
  1. Signature

Replaces a live canvas with vector SVG when the source library can export it.

Returning null delegates to canvasFallback. Throwing or returning malformed SVG produces CanvasToSvgError.

Signature

export type CanvasToSvg = (request: CanvasToSvgRequest) => CanvasSvgSource | null | Promise<CanvasSvgSource | null>;
SOURCE:79
ON_THIS_PAGE
  1. Signature
html2realpdf documentationCopyright © Imggion
DOCUMENTATION_TREE