eKoopmans / html2pdf.js

Client-side HTML-to-PDF rendering using pure JS.
MIT License
4.13k stars 1.39k forks source link

Black screen even after using custom build in Angular 4 #87

Open sameerpallav opened 6 years ago

sameerpallav commented 6 years ago

First of all nice work! html2pdf works fine in normal javascript but when I include the same custom build in angular 4, it generates a black screen. I tried with installing the custom build of html2canvas and also by just using the html2pdf.bundle.Both are generating the same black screen. Anyone got any clue where this would be failing? myfile (1).pdf

BieNewBie commented 6 years ago

Can you just provide the normal javascript code which generates the pdf perfectly as webpage

eKoopmans commented 6 years ago

Hi @sameerpallav, sorry for the long delay.

I'm not very experienced with Angular, sorry! As a starter, I would suggest trying the latest v0.9.0 that I just released - it made a lot of changes. One of the fixes I worked on for it was related to Angular, though I don't think it has to do with your specific issue.

sameerpallav commented 6 years ago

sure I will try and let you know

sameerpallav commented 6 years ago

Thanks works fine with v0.9.0.