Converting any XLSX file to PNG results in multiple output files, although pagesCount is set to 1.
GroupDocs.Conversion 21.9.1 was used with .NET Framework 4.7.2 and the following code:
using (var conv = new Converter(documentPath))
{
var options = new ImageConvertOptions()
{
Format = FileTypes.ImageFileType.Png,
//convert only the first page for thumbnail
PageNumber = 1,
PagesCount = 1,
Width = 256 //pixel -> low resolution for thumbnail
};
Contracts.SavePageStream getPageStream = page => new FileStream(string.Format("Thumbnail{0}.png", page), FileMode.Create);
conv.Convert(getPageStream, options);
}
Thumbnail Range.zip (14.8 KB)