Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image placement with addImage #90

Closed
cynthiaeffectiveui opened this issue Apr 16, 2013 · 2 comments
Closed

Image placement with addImage #90

cynthiaeffectiveui opened this issue Apr 16, 2013 · 2 comments

Comments

@cynthiaeffectiveui
Copy link

I was wondering what the unit of measurement used in the addImage function is. If I don't put any width/height, it seems to display in real size. If I specify the size in pixels, the image is much bigger than I would have expected.

Similarly, when I put in x/y coordinates in pixels, the images were way off the canvas, but when I tried to translate that to inches it wasn't even close the other direction.

What are the units used for this?

Thanks!

@MrRio
Copy link
Member

MrRio commented Apr 16, 2013

Hey there,

It's in millimeters. Here it is in the docs, you can change the units in the constructor.

http://jspdf.com/doc/symbols/jsPDF.html#constructor

Many thanks,
James

@MrRio MrRio closed this as completed Apr 16, 2013
@MrRio
Copy link
Member

MrRio commented Apr 16, 2013

It also defaults to A4 paper size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants