You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I am ready to render a page with unpdf, renderPageAsImage will report an error if there is an image embedded in the pdf.
Additional context
No response
Logs
TypeError: r.createCanvas is not a function
at NodeCanvasFactory._createCanvas (file:///workspaces/workspace/node_modules/.pnpm/unpdf@0.10.0/node_modules/unpdf/dist/pdfjs.mjs:1:1316062)
at NodeCanvasFactory.create (file:///workspaces/workspace/node_modules/.pnpm/unpdf@0.10.0/node_modules/unpdf/dist/pdfjs.mjs:1:1153693)
at CachedCanvases.getCanvas (file:///workspaces/workspace/node_modules/.pnpm/unpdf@0.10.0/node_modules/unpdf/dist/pdfjs.mjs:1:1163909)
at CanvasGraphics.paintInlineImageXObject (file:///workspaces/workspace/node_modules/.pnpm/unpdf@0.10.0/node_modules/unpdf/dist/pdfjs.mjs:1:1198408)
at CanvasGraphics.paintImageXObject (file:///workspaces/workspace/node_modules/.pnpm/unpdf@0.10.0/node_modules/unpdf/dist/pdfjs.mjs:1:1197232)
at CanvasGraphics.executeOperatorList (file:///workspaces/workspace/node_modules/.pnpm/unpdf@0.10.0/node_modules/unpdf/dist/pdfjs.mjs:1:1172983)
at InternalRenderTask._next (file:///workspaces/workspace/node_modules/.pnpm/unpdf@0.10.0/node_modules/unpdf/dist/pdfjs.mjs:1:1152632)
The text was updated successfully, but these errors were encountered:
Environment
Node.js v20.9.0
PNPM v8.10.0
UnPDF v0.10.0
Reproduction
Example Code: CodeSandBox
Describe the bug
When I am ready to render a page with unpdf, renderPageAsImage will report an error if there is an image embedded in the pdf.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: