jsPDF icon indicating copy to clipboard operation
jsPDF copied to clipboard

addImage y property

Open giladevi opened this issue 1 year ago • 0 comments
trafficstars

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

giladevi avatar May 01 '24 05:05 giladevi