Closed Natim closed 4 years ago
Do you know of a way to resize the canvas before print?
I tried
// Resize canvas on print
(function (oldPrint) {
window.print = function () {
console.log("Redraw before print");
canvas.width = 250;
canvas.height = canvasWrapper.clientWidth * 0.5625;
redraw();
oldPrint();
}
})(window.print);
Without success so far.
I don't think you want to resize the canvas, it should be hidden in favor of the image that displays the signature once you "validated" it.
Note that exporting from the mobile works like that, it is when I export from the computer that I have two pages because the signature is too big.
Thanks a lot @Natim, can you please double check that my last modifications are working correctly for you, even on mobile?
Ok
I don't know if we can hide the date selector on print?
You mean https://stackoverflow.com/questions/52506410/hiding-a-clear-button-from-date-picker-on-print-in-firefox ? Seems it's not possible? :/
I tested it on mobile it works like a charm.
Thanks again for the work @Natim :+1:
r? @magopian