wnabil / ngx-export-as

Angular 2+ / Ionic 2+ HTML/table element to export it as JSON, XML, PNG, CSV, TXT, MS-Word, Ms-Excel, PDF
MIT License
68 stars 40 forks source link

Unable to export image in html as image #75

Closed WilliamsEnabulele closed 4 years ago

WilliamsEnabulele commented 4 years ago

When I try exporting the div containing both image and standard html, the space for image left blank while the other html gets rendered as image

wnabil commented 4 years ago

if your images are dynamically printed from a remote server then its a CORS issue in html2canvas, use { useCORS: true } in the options for the html2canvas options config = { options: { useCORS: true } }