Cell 字形為標楷體粗體時, 使用 SheetRender.toImage() 產生的圖片, 字形不正確;
但標楷體非粗體時正常.
@rogerhsiao,
您能否提供给我们一张图像,其中突出显示了问题,并且还给出了比较结果以进行正确和不正确的输出。另外,请提供两个Excel模板文件,一个用于正确转换,另一个用于不正确转换。我们将在此处重现该场景并提供相应的帮助。
請參考上傳檔案裡的 test.xlsx & test.png,
程式位於 src\main\java\tw\rogerhsiao\Excel2Image.java
test.xlsx - sheet: BS 內容皆為標楷體, 以 Excel2Image 輸出成 test.png 後,
圖片裡粗體部分變成非標楷體
比較圖.png (121.9 KB)
@rogerhsiao,
此问题在此处复制,并记录在我们的数据库中以进行调查和修复。准备好分享任何更新后,您会在这里收到通知。
该问题记录为:
CELLSJAVA-43254-Font difference while converting spreadsheet to image
请尝试使用我们的最新版本/修复程序:Aspose.Cells for Java v20.8.1(随附)
aspose-cells-20.8.1-java.zip (7.2 MB)
您的问题应该已解决。
让我们知道您的反馈。
The issues you have found earlier (filed as CELLSJAVA-43254) have been fixed in Aspose.Cells for Java v20.9. This message was posted using Bugs notification tool by ahsaniqbalsidiqui.
You may also get the new version @ Maven repos. (On Premise File Format API Releases | Aspose)