スプレッドシートをHTMLに変換する際のWordArtのグラデーションフィルをレンダリング

可能な使用シナリオ

以前は、Aspose.Cells APIはスプレッドシートをHTML形式に変換する際にWordArt形状のグラデーションフィルをレンダリングすることができませんでした。現在、Aspose.Cells APIではWordArt形状のグラデーションフィルをレンダリングする機能がサポートされています。以下のスクリーンショットは、以前のリリースと最近のリリースにおけるHTMLでのグラデーションフィルの効果を示しています。

todo:image_alt_text

スプレッドシートをHTMLに変換する際のWordArtのグラデーションフィルをレンダリング

以下のサンプルコードは、元のエクセルファイルを出力のHTML形式に変換します。元のエクセルファイルには上記のスクリーンショットに示されているようにグラデーションフィルを持つ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");