I'm using printjs to convert my html page to pdf, all works fine except my canvas, which you can see here:
and here is the code:
printJS({
printable: 'page1',
type: 'html',
scanStyles: false,
ignoreElements: ['btnPrint'],
css: [
'vendor/fontawesome-free/css/all.min.css',
'css/sb-admin-2.min.css',
'css/custom.css'
]
});
canvas height: 320px and width: 562px
How can I fix this?
try to increase canvas height. and Also adjust the center of this shape properly. looks like coordinates (x,y) are going out of bound.