kempsteven/vue-html2pdf

DOMException: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.

akelalix opened this issue · 1 comments

Hi @ALL,

Good day.

When I tried using it on a blank component page the code works perfectly, but if I apply it on a child child component, it produces this error

DOMException: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.

I tried putting height on the container of the vue-html2-pdf but still produces an error.

Screenshot 2021-09-08 065401

Can someone please help me.

Thank you

hello @ALL ,

I added   before my component it seems working fine now but still with blank first page.

Thank you