1
I have a Function that prints an image in order to print it. But I would like to know if you have how to change the position of this image at the time it enters the method.
At the moment the Function thus opens the image
I would like to resize the image 90º on the right to be able to pick up the sheet (A4 format), this is possible ?
Follows code:
function printPartOfPage(elementId) {
var printContent = document.getElementById(elementId);
var printWindow = window.open('', '', 'left=10,top=10,width=740,height=600');
printWindow.document.write(printContent.innerHTML);
printWindow.document.close();
printWindow.focus();
printWindow.print();
printWindow.close();
}