Hello,
We’re using the SheetRender.ToImage functionality over a worksheet that has some cells formatted with a custom font (the font is already installed in the OS) and the font is not preserved in the image.
Aspose.Cells version 18.8
I’ve attached the input workbook, the output image and the font file.
58560.zip (32.6 KB)
Here’s the sample code I use to reproduce the issue starting from the workbook:
var workbook = new Workbook("C:\\0ut\\test.xlsx");
var opt = new ImageOrPrintOptions
{
PrintingPage = PrintingPageType.IgnoreBlank,
ImageFormat = ImageFormat.Png,
OnePagePerSheet = true,
OnlyArea = true
};
var sh1 = new SheetRender(workbook.Worksheets[0], opt);
var image = sh1.ToImage(0);
image.Save("C:\\0ut\\test.png");
As can be seen this does not occur with other fonts.