-
-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for colors #63
Comments
Not at the moment, you could hack style maps?
|
Hmm I'll give that a try - thanks for the pointer! The final hurdle is making it work with PowerPoint - I know the xml structures are quite different - how much work do you think it would take? I just need it to work with text in a text box - no need for tables/animations/or anything else unique to PowerPoint |
I would consider that a big job. |
Mammoth is intended to be used by mapping styles rather than trying to copy the exact formatting of the original document, so your best bet is to define and use Word styles that have the desired colours, and then map those styles to CSS classes. Mammoth doesn't support Powerpoint, and as you say the XML is different, so adding support is unlikely. |
set this line: not work.. |
Hey @kingctan read the info about style mapping. If you still have trouble, please open a new issue and attach doc, style map and command used. The current issue is about support for colour extraction. Which is not the same as style mapping. Thanks! |
I have the same need. And i don't have one template on all files i'd like to process. So i can't use style maps feature. Take a look: https://github.com/zt50tz/python-mammoth/blob/master/recipes/html_attributes.py Hope it helps. And try to use style maps if it possible. |
@zt50tz Will you submit your changes to a pull request for project? |
I just did. |
Whilst at it, I also implement support for table cell fill colour. |
Hi! Is there any functionality to allow for colors of text to be transferred over to the output html? If there's no such functionality - how trivial would it be to implement? It's important for my current project that I am able to use have colors in the output. Thanks in advance for your help :)
The text was updated successfully, but these errors were encountered: