在将电子表格转换为HTML格式时渲染文字艺术的渐变填充

可能的使用场景

以前,当电子表格转换为HTML格式时,Aspose.Cells API无法渲染WordArt形状的渐变填充。现在,Aspose.Cells API支持渲染WordArt形状的渐变填充。以下截图显示了以前版本和最近版本的HTML中渐变填充的效果。

todo:image_alt_text

在将电子表格转换为HTML时渲染WordArt的渐变填充

以下示例代码将源Excel文件转换为输出HTML格式。源Excel文件包含一个渐变填充的WordArt对象,如上方截图所示。

示例代码

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java
// The path to the documents directory.
String dataDir = Utils.getSharedDataDir(RenderGradientFillHTML.class) + "articles/";
//Read the source excel file having text with gradient fill
Workbook wb = new Workbook(dataDir + "sourceGradientFill.xlsx");
//Save workbook to html format
wb.save(dataDir + "out_sourceGradientFill.html");