addImage y property
giladevi opened this issue · comments
giladevi commented
when using addImage the y attribute sets where the image would be drawn on the pdf page instead of the y attribute of the picture to be drawn from.
example: i want to draw bottom half of a picture in a page: i would do :pdf.addImage(image, 'PNG', 0, imageHeight/2, pdfWidth, pdfHeight);
but the result would be the picture is drawn in mid page