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
I am creating a canvas before calling html2canvas in order to achieve better quality (found this solution in one of the answers here), but the problem that I am now facing is that there is a gap at the top of my image. Seems like the scanned div is correct, but the image is shifted like its taking the header into the consideration.
` var canvas = createCanvas();
html2canvas(elementToExport, {
canvas: canvas,
useCORS: true,
allowTaint: true,
letterRendering: true
}).then(function(canvas) {
// do the rest
});
`
The text was updated successfully, but these errors were encountered:
I am creating a canvas before calling html2canvas in order to achieve better quality (found this solution in one of the answers here), but the problem that I am now facing is that there is a gap at the top of my image. Seems like the scanned div is correct, but the image is shifted like its taking the header into the consideration.
` var canvas = createCanvas();
`
The text was updated successfully, but these errors were encountered: