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

Adding images when jsPdf is initiated with "in" or "cm" doesnt work #3638

Closed
Elcris1 opened this issue Sep 16, 2023 · 1 comment
Closed

Adding images when jsPdf is initiated with "in" or "cm" doesnt work #3638

Elcris1 opened this issue Sep 16, 2023 · 1 comment

Comments

@Elcris1
Copy link

Elcris1 commented Sep 16, 2023

I have read and understood the contribution guidelines.

I was trying to add an image to my pdf which was genereted with the following object:
var doc = new jsPDF("p", "in").setProperties({ title: title });

So the text worked perfectly but when I tried to add an image to the pdf it did not work.
At first I thought it was the img i was passing to the obj but then realized it was the units i used to create the object ("in").

I went to the live demo add images example and tried it out there aswell and realized that "cm" and "in" units dont allow images.

Is this how it should work?

Copy link

This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.

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

No branches or pull requests

1 participant