karnov / htmltoword

Ruby html to word gem
MIT License
177 stars 70 forks source link

Can htmltoword support html and css styles? #45

Open henriquemenezes opened 8 years ago

henriquemenezes commented 8 years ago

For example:

http://plnkr.co/edit/SCDfbdFO9vxsFxjzXuT9?p=preview

anitsirc commented 8 years ago

Hi, currently very basic support mostly on alignment and tables. https://github.com/karnov/htmltoword/wiki/Styles-and-classes

Maybe in the future I'll add css support for margins and fonts.

deepak496 commented 6 years ago

My problem is that it is not picking a single css whether defined externally or even inline. Can anybody tell me do we need to do something else as well apart from including the gem in the gemfile. What are the steps to successfully implementing docx with proper css