jsPDF icon indicating copy to clipboard operation
jsPDF copied to clipboard

Upgrade html2canvas to html2canvas-pro in order to support the oklch() color function.

Open vijaykerure opened this issue 1 year ago • 7 comments
trafficstars

html2Canvas does not support several modern color functions, leading pdf output to fail when using a few modern UI frameworks such as DaisyUI.

e.g: daisyui@latest uses oklch color function, If we use jsPDF with daisyUI we facing an error Error: Attempting to parse an unsupported color function "oklch"

Also, html2canvas-pro has several advantages over html2canvas, including:

  • support color function color() (including relative colors)
  • support color function lab()
  • support color function lch()
  • support color function oklab()
  • support color function oklch()
  • Support object-fit of <img />

vijaykerure avatar Jul 14 '24 10:07 vijaykerure