With the following code, I am getting a word document that has the font size set to 36 regardless what the rich text has. See code below and the rich text string I'm passing. Can you help me understand why this might be? I really the the font size to be what it specified in the rich text.
Thanks!
***********************
String commentFileName = String.Empty;
Byte[] bytes = encoding.GetBytes(text);
using (MemoryStream ms = new MemoryStream(bytes))
{
LoadFormat loadFormat = Aspose.Words.LoadFormat.Rtf;
commentFileName = FileUtils.GetTempFileName(TypeConversion.EnumToString(SaveFormat.Docx));
Document doc = new Document(ms, null,loadFormat,null);
doc.Save(commentFileName, SaveFormat.Docx);
doc.Save(commentFileName, SaveFormat.Docx);
the variable text is:
"
this is arial 10
this is courier 10
georgia 14
"