parallax / jsPDF

Client-side JavaScript PDF generation for everyone.

Home Page:https://parall.ax/products/jspdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

addImage y property

giladevi opened this issue · comments

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