Page 1 of 1

DOCX with background color

PostPosted: Tue Aug 07, 2012 7:39 pm
by Marco
Hi all,

I have the need to convert into HTML a DOCX file which have a background color.
At the moment I am using the sample class "ConvertOutHtml" and it seems not working.

Do I have to implement it by myself?
Implementation is on the Java side or XSLT side?

Thanks
Marco

Re: DOCX with background color

PostPosted: Wed Aug 08, 2012 9:58 am
by jason
In WordML, background color is just:

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" >
  <w:background w:color="C00000"/>
  <w:body>
    <w:p >
:
 
Parsed in 0.000 seconds, using GeSHi 1.0.8.4


so you can implement it in docx2xhtmlNG2.xslt with a template which matches w:background