karnov / htmltoword

Ruby html to word gem
MIT License
179 stars 71 forks source link

The default templates work in google doc but not with my custom_template #85

Closed JulienTribouillier closed 4 years ago

JulienTribouillier commented 4 years ago

Hello everyone, I have a problem. When I download the docx file directly to my desktop, my template works, but when I use a google widget to upload it directly to google drive, the preview is not good. And in google doc the file opens without style. However I use the same controller to download, and to upload directly to google doc. How could I edit the template so that it is compatible with google doc? More precisely, when I use the default template, the style works on both tools.

Thank you to those who can help me

JulienTribouillier commented 4 years ago

I'd like to put H1 H2 not in uppercase but in downcase.

JulienTribouillier commented 4 years ago

I understand more things now, when i change the style of headings1 in the custom template, the gem make style of heading1 to normal. And when in my final docx file, i change it to Title1, it works... The thing i don't understand is why those changes make it vanish.

JulienTribouillier commented 4 years ago

Ok if you whant to change template, you need English word version ! (i had French one)