I have a function that takes print from an image to be able to print it. But I would like to know if you can change the position of this image at the time it enters the method.
function thus opens the image
I would like to resize the image 90º to the right in order to get the sheet (A4 size), is it possible?
Follow the code below:
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();
}