-
Notifications
You must be signed in to change notification settings - Fork 36
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
How to get it to work without nodejs #30
Comments
I would suggest using a build tool (e.g https://github.com/joshua-gould/canvas2pdf/blob/master/package.json#L27) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
I'm trying to use this module without nodejs, but I'm getting an error telling me PdfContext is undefined. Here is my code for reference:
(index.html)
The file
canvas2pdf.min.js
above is the/dist/canvas2pdf.js
file(index.js)
And this is the error the browser is throwing
Uncaught ReferenceError: PdfContext is not defined
Any idea what I'm doing wrong?
The text was updated successfully, but these errors were encountered: