java - Importing external CSS file when converting to HTML -


i'm trying convert docx file html file using given sample program.
sample suggests:

string usercss = "html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, img,    ol, ul, li, table, caption, tbody, tfoot, thead, tr, th, td " +                       "{ margin: 0; padding: 0; border: 0;}" +                    "body {line-height: 1;} "; htmlsettings.setusercss(usercss); 

even though setusercss depreciated method. works fine, have own css file use.
avoid extracting string file possible.

as this, combine multiple css files such top of resultant output html contains:

<link rel="stylesheet" type="text/css" href="stylesheet1.css"/> <link rel="stylesheet" type="text/css" href="stylesheet2.css"/> <link rel="stylesheet" type="text/css" href="stylesheet3.css"/> 

in head.

that, or finding alternative setusercss method can call on htmlsettings class.

couldn't find case, other way around. solution appreciated. thanks.

i don't know language using write such kind of program. can writing function convert path of file css link.

for example:

htmlsettings.loadcss('path/stylesheet1.css'); 

this converted

<link rel="stylesheet" type="text/css" href="path/stylesheet1.css"/> 

Comments