调用AddFromHtml 报错
不支持rgb颜色
以下html
<p><span style="color:rgb(225,60,57);">aaaaa</span></p>
Presentation ppt = new Presentation();
IAutoShape shape = ppt.Slides[0].Shapes.AppendShape(ShapeType.Rectangle, new RectangleF(50, 50, 400, 100));
shape.TextFrame.Paragraphs.Clear();
string htmlText1 = "<table style=\"width:auto;\"><tbody><tr><th colSpan=\"1\" rowSpan=\"1\" width=\"auto\"></th></tr></tbody></table><p><br></p>";
string htmlText2 = "<p><span style=\"color:rgb(225,60,57);\">aaaaa</span></p>";
shape.TextFrame.Paragraphs.AddFromHtml(htmlText1);
shape.TextFrame.Paragraphs.AddFromHtml(htmlText2);
ppt.SaveToFile("output.pptx", FileFormat.Pptx2013);