c# - Font size is not same, when html is converted to Word using Microsoft.Office.Interop.Word -


i trying convert html file ms word (docx) file. using microsoft.office.interop.word able convert html word font size not same both html , word format of file. whatever formatting (font size) had done in html lost in word file. can me retain same font size.

here code:

microsoft.office.interop.word.document worddoc = new microsoft.office.interop.word.document();  worddoc = wordapp.documents.open(ref filepath, ref confirmconversion, ref readonly, ref omissing, ref omissing, ref omissing, ref omissing, ref omissing,                                              ref omissing, ref omissing, ref omissing, ref omissing, ref omissing, ref omissing, ref omissing, ref omissing);  object fileformat = microsoft.office.interop.word.wdsaveformat.wdformatdocumentdefault;  worddoc.saveas(ref saveto, ref fileformat, ref omissing, ref omissing, ref omissing, ref omissing, ref omissing, ref omissing, ref omissing, ref omissing, ref omissing, ref omissing, ref omissing, ref oallowsubstitution, ref omissing, ref omissing); 

thanks!

using code convert

microsoft.office.interop.word.application word = new microsoft.office.interop.word.application();             microsoft.office.interop.word.document worddoc = new microsoft.office.interop.word.document();             object omissing = system.reflection.missing.value;             worddoc = word.documents.add(ref omissing, ref omissing, ref omissing, ref omissing);             word.visible = false;             object filepath = "c:\\page.html";             object confirmconversion = system.reflection.missing.value;             object readonly = false;             object saveto = "c:\\doc.pdf";             object oallowsubstitution = system.reflection.missing.value;              worddoc = word.documents.open(ref filepath, ref confirmconversion, ref readonly, ref omissing,                                           ref omissing, ref omissing, ref omissing, ref omissing,                                           ref omissing, ref omissing, ref omissing, ref omissing,                                           ref omissing, ref omissing, ref omissing, ref omissing);             object fileformat = wdsaveformat.wdformatpdf;             worddoc.saveas(ref saveto, ref fileformat, ref omissing, ref omissing, ref omissing,                            ref omissing, ref omissing, ref omissing, ref omissing, ref omissing,                            ref omissing, ref omissing, ref omissing, ref oallowsubstitution, ref omissing,                            ref omissing);