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

1.3.2 version , addimage #2910

Closed
JoakFlores opened this issue Sep 11, 2020 · 4 comments
Closed

1.3.2 version , addimage #2910

JoakFlores opened this issue Sep 11, 2020 · 4 comments

Comments

@JoakFlores
Copy link

JoakFlores commented Sep 11, 2020

For the 1.3.2 version, addimage only works with base64 or can I put the URL ?

@HackbrettXXX
Copy link
Collaborator

It only wprks with base64. Update to a more recent version (I think 1.5.3 should be enough, but better update to 2.1.1).

@JoakFlores
Copy link
Author

JoakFlores commented Sep 14, 2020

Thanks Lukas.

What file have I copy for the new version (2.1.1)? , currently, I work with the jspdf.min.js file (1.3.2) but for the new version under the "dist" carpet, I see ... es, node, umd files , Could you help me, please? I work with native JavaScript project.

@HackbrettXXX
Copy link
Collaborator

If you are not using any build tools, use the "jspdf.umd.min.js" file. Otherwise the "jspdf.es.min.js". Also: the global variable was renamed in 2.0: the jsPDF constructor is now under window.jspdf.jsPDF.

@JoakFlores
Copy link
Author

Oks Lukas, thanks

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