pdf-to-png-converter icon indicating copy to clipboard operation
pdf-to-png-converter copied to clipboard

Error: render no longer accepts the `canvasFactory`-option, please pass it to the `getDocument`-function instead

Open Nolesh opened this issue 1 year ago • 1 comments

It works great on Windows 11, but when I try to run it in docker with debian:11-slim and node 18.x, it says:

Error: render no longer accepts the `canvasFactory`-option, please pass it to the `getDocument`-function instead.
    at PDFPageProxy.render (/home/site/wwwroot/server/node_modules/pdf-to-png-converter/node_modules/pdfjs-dist/legacy/build/pdf.js:4838:13)
    at pdfToPng (/home/site/wwwroot/server/node_modules/pdf-to-png-converter/out/pdf.to.png.js:74:20)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Could you fix it please?

Nolesh avatar Apr 04 '23 15:04 Nolesh

It works great on Windows 11, but when I try to run it in docker with debian:11-slim and node 18.x, it says:

Error: render no longer accepts the `canvasFactory`-option, please pass it to the `getDocument`-function instead.
    at PDFPageProxy.render (/home/site/wwwroot/server/node_modules/pdf-to-png-converter/node_modules/pdfjs-dist/legacy/build/pdf.js:4838:13)
    at pdfToPng (/home/site/wwwroot/server/node_modules/pdf-to-png-converter/out/pdf.to.png.js:74:20)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Could you fix it please?

Please try v3

dichovsky avatar Apr 09 '23 15:04 dichovsky