Convert XLSB to Image Via Python
XLSB to JPG, TIFF, BMP, PNG, GIF images conversion in your Python Applications without installing Microsoft Office®.
For a Python developer, who is trying to add a XLSB to PNG, BMP, TIFF, JPEG and GIF Image conversion feature within application. As sometimes it’s required to embed Excel spreadsheets in the web or desktop applications. In such cases exporting spreadsheets to images is the one soultion. Aspose.Total for Python via Java API can help to export Excel files to images as well as to automate the conversion process. It’s a full package of various APIs dealing different formats including Microsoft Excel formats via its child Aspose.Cells for Python via Java API. Currently Python Excel to Image Converter API supports conversion of Excel Files to EMF, WMF, JPEG, PNG, BMP, GIF, TIFF, SVG, GLTF, PICT, SVM and Office Compatible EMF or check the supported formats .
How to Convert XLSB to Images in Python
- Create Workbook class object to load XLSB file
- Use ImageOrPrintOptions class and specify the output image relevant options
- Get the access the worksheet for conversion using Workbook.getWorksheets().get(index) method
- Create the instance of SheetRender class object and initialize it with Worksheet and ImageOrPrintOptions objects
- Save all pages of worksheet as an image using SheetRender.toImage(pageIndex, fileName) method. Now XLSB file is converted to Images at the specified path
Conversion Requirements
- For XLSB to Images (JPG, PNG, GIF, BMP, TIFF) conversion, reference APIs within the project directly from PyPI ( Aspose.Cells )
- Or use the following pip command
pip install aspose.cells - Moreover, Download the API package from the downloads section