jsPDF icon indicating copy to clipboard operation
jsPDF copied to clipboard

When exporting, if you encounter an element whose background is set to an image, the exported content will turn black. How to deal with this?

Open webWine opened this issue 1 year ago • 4 comments

You can refer to this issue: https://github.com/parallax/jsPDF/issues/3538

webWine avatar Oct 08 '23 09:10 webWine

Bonjour, je souhaite participer à la résolution de ce problème. Pouvez-vous me l'attribuer ?

jguirimm avatar Nov 26 '23 13:11 jguirimm

Hello! I have the same problem. Does anyone have a solution for this?

abvas avatar Dec 14 '23 01:12 abvas

I get this too, until i find a better fix i'm currently hiding them in the dom and creating a temp image copy using html2canvas.

Not the best solution as it slows down the print process but it works until i find a better one.

Aalnius avatar Jan 29 '24 13:01 Aalnius

i'm currently hiding them in the dom and creating a temp image copy using html2canvas.

Hello! Could you show an example of how you do this?

abvas avatar Jan 30 '24 08:01 abvas

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.

github-actions[bot] avatar Apr 30 '24 01:04 github-actions[bot]