Convert Excel to PNG through the Aspose interface, and the borders at the right and bottom of the cell are lost
image.png (3.3 KB)
image.png (15.6 KB)
this is my code
Workbook workbook = new Workbook("D://Aspose//EPPR_53195//EPPR_53195.xlsx");
ImageOrPrintOptions options = new ImageOrPrintOptions();
options.setImageFormat(ImageFormat.getPng());
options.setOnlyArea(true);
options.setOnePagePerSheet(true);
options.setTransparent(false);
SheetRender render = new SheetRender(workbook.getWorksheets().get(0), options);
render.toImage(0, "D://Aspose//EPPR_53195//output/EPPR_53195.png");
this is the excel file
EPPR_53195.zip (10.0 KB)