Erik Koopmans

Results 40 comments of Erik Koopmans

For anyone else facing a similar problem, I have found a workaround using [Sinon](https://sinonjs.org/) (would have used chai-spies if it had any way to check a spy's return value). The...

Hello! 1. Thanks for the suggestion @JVApen, I'll look into adding the feature. 2. Thanks for the workaround @cwallen! 3. @mnelson4 yes, creating a PDF is like printing, and it...

Hi @mpastas, the `componentHandler` is the tool that you're looking for - it upgrades components to give them JS behaviours. [This wiki article](https://github.com/google/material-design-lite/wiki/How-the-Component-Handler-works) briefly describes how the Component Handler works,...

Hi all, yes it seems that html2pdf does not perform as intended when the htmlcanvas `width` is set to a custom value. @sandroden thank you very much for the demo,...

Hi @sandroden, no worries! So... did you try `scale: 8` without adjusting `width`? It shouldn't be necessary to adjust `width` when changing `scale`, it's automatic. But yes, html2pdf.js currently rescales...

Setting your div to `width: 100%` will cause it to fill the PDF page. html2pdf.js creates a "container" div that has the width of your PDF document type (e.g. `21.0cm`...

Looks very nice. Yes, for many applications a 1:1 copy is important, but for many others it isn't. In the first place if you want to print a whole webpage,...

Hi @jgrDev, that's interesting! Can you show me how you're setting the styles? If it truly is `` then I'm surprised it's not working, but there are other possible causes...

Hi @ermarkar, sorry you've been having trouble. I suspect this is related to the way nodes are currently cloned in html2pdf.js. If so, it's something I've been meaning to fix...

Glad you got things working! That said, we definitely want external stylesheets to work properly. If you have a chance, please test the other build (with your original stylesheets) and...