スプレッドシートを HTML に変換しながらワードアートのグラデーション塗りつぶしをレンダリングする
Contents
[
Hide
]
考えられる使用シナリオ
以前は、Aspose.Cells API は、スプレッドシートが HTML 形式に変換されたときにワードアート図形のグラデーション塗りつぶしをレンダリングできませんでした。 Aspose.Cells API は、ワードアート図形のグラデーション塗りつぶしのレンダリングをサポートするようになりました。次のスクリーンショットは、以前のリリースと最近のリリースの HTML のグラデーション塗りつぶしの効果を示しています。
スプレッドシートを HTML に変換しながら、ワードアートのグラデーション塗りつぶしをレンダリングする
次のサンプル コードは、ソースの Excel ファイルを出力 HTML 形式に変換します。t.ソースの Excel ファイルには、上のスクリーンショットに示すように、グラデーションで塗りつぶされたワード アート オブジェクトが含まれています。
サンプルコード
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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"); |