Page 1 of 1

Extracing style information during docx to xhtml conversion

PostPosted: Tue Oct 06, 2015 5:03 pm
by sridhar kandula
Hi All,

I am trying to convert docx file which has embedded fonts files,when i extract the font-family names using the method getJAXBNodesViaXPath i am able to get the information,but when i am converting the docx to xhtml using method Docx4J.toHTML(htmlSettings, outputStream, Docx4J.FLAG_EXPORT_PREFER_XSL);
i am not able to retrieve the style information in inline css.can you please help me out

Current output : <p class="Normal DocDefaults"><span class="DefaultParagraphFont" style="">Style Extraction Test</span></p>

Expected output : <p class="Normal DocDefaults"><span class="DefaultParagraphFont" style="font-family:'Maliga'">Style Extraction Test</span></p>

and also help out me with extracting all inline css into style.css file