-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Transparency using html() method and doc.addImage() for the background. #3716
Comments
I am also facing a similar problem, if any one has a solution please comment on this issue. |
So, turns out (and you may already know) this js application uses html2canvas, so we can override it's default options by doing the following. |
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. |
Hello,
First, thanks for your work on this very useful lib. I would like to report an issue encountered while using jspdf library for generating PDFs from HTML templates.
I've been trying to generate using the html() method. However, I've run into a problem as the div containers within the HTML template are all rendered with a white background. This prevents me from adding a background image effectively using doc.addImage()
I've explored various approaches to work around this issue (transparent color of my main container), but haven't found a satisfactory solution yet.
Perhaps there's a way to override the background color of the div containers
Any guidance or assistance you could provide on this matter would be greatly appreciated!
Sincerely yours,
The text was updated successfully, but these errors were encountered: