Hi there! Let me just say thank you for your great product
I need some help since i am desperate.
I´m trying to insert html content in a word document using the DocumentBuilder “insertHtml” method.
My html has the CSS properties in the head of the html, but for some reason the resultant word document won´t apply these CSS rules.
My html is like this:
ol,dl,ul{padding:0 40px}ol ol{list-style:lower-alpha;margin-left:1.25em}ol ol ol{list-style:lower-roman;margin-left:2.5em}ol ol ol ol{list-style:decimal}ol ol ol ol ol{list-style:lower-alpha}ol ol ol ol ol ol{list-style:lower-roman}ul ul ul ul{list-style-type:disc}ul ul ul ul ul{list-style-type:circle}ul ul ul ul ul ul{list-style-type:square}li li{padding-left:.4em}li li li{padding-left:0}
I have tried the code above in Chrome and other browsers and it´s working.
I have also tried to insert each style directly in the correspondent html tag and it also works, but this is not good for me since the html im processing is dynamic.
This is what i´m using to insert the html:
final DocumentBuilder builder = new DocumentBuilder((Document) e.getMatchNode().getDocument());
builder.insertHtml(this.html, true);
Any help will be immensely appreciated. I´m totally desperate.
Thank you so much for reading.
Kind regards,
Nuno Silva.