pqzx / html2docx

Convert html to docx
MIT License
69 stars 49 forks source link

Add classes with specific styles #46

Open Jab2870 opened 2 years ago

Jab2870 commented 2 years ago

It would be useful to associate styles with html classes. I understand that it is probably overkill to try and parse css, but it would be useful to have (for example) html like this:

<p class="indent">Blar blar</p>

And have an intent applied in the word document, perhaps like this:

self.paragraph.paragraph_format.left_indent = Inches(1.5)