Page 1 of 1

Docx to HTML - Inline CSS

PostPosted: Mon Jan 28, 2019 7:45 pm
by jogahe
Hi!

I have just started to use your library in DOCX to HTML transformations and vice-versa and I can only say great job and thank you! Transformations are almost perfect ;)

But I have a problem that cannot resolve myself. Looking at the source code, I saw the following (ConversionHTMLStyleElementHandler):

// See XsltHTMLFunctions, which typically generates the String styleDefinition.
// In practice, the styles are coupled to the document content, so you're
// less likely to override their content; just whether they are linked or inline.

I have a WYSIWYG HTML Editor that doesn't care about the head tag in HTMLs, only the body, so the styles tag is ignored.

Is there a way to generate all the styles inline for each element?

Regards.