XHTML to Docx conversion using docx4j not reading font-size style

Refresh

April 2019

Views

2 time

0

XHTML:

    <span style="color:#696969;">
        <span style="font-family:tahoma;">
            <span style="font-size:8pt;">
                18F, Mirae Asset CENTER1 West Tower
            </span>
        </span>
    </span>

converted document.xml:

<w:r>
       <w:rPr>
            <w:rFonts w:ascii="Tahoma" w:hAnsi="Tahoma"/>
            <w:b w:val="false"/>
            <w:i w:val="false"/>
            <w:color w:val="696969"/>
       </w:rPr>
       <w:t>
           18F, Mirae Asset CENTER1 West Tower
       </w:t>
</w:r>

font-size:8pt; not getting converted to <w:sz w:val="8"/> in ooxml. If font-size is given as small,x-large,etc. it gets converted.

0 answers