Brooooooklyn / canvas

High performance skia binding to Node.js. Zero system dependencies and pure npm packages without any postinstall scripts nor node-gyp.
https://vercel.skia.rs
MIT License
1.78k stars 76 forks source link

PDF.js support #931

Open Brooooooklyn opened 2 weeks ago

GreenFlag31 commented 1 week ago

Could you be a bit more explicit ? There is no PDF.js support ? When I try to use your lib with pdfjs.dist , I get : webpack://pdf.js/src/display/canvas.js:261 ^ Error: Value is non of these types CanvasElement, SVGCanvas, Image,

I wanted to replace node canvas with your lib, but unsucessfully. I'm on Node.js v20.