Hi
I’m trying to get the dimension of a worksheet. I’m using the method getPageSize() from the SheetRender class - what I get back is a float array, with 2 values. However when I save the same worksheet as a JPEG the dimension is different from the values I got from the getPageSize() method (about 200 pixels larger in both width and height).
Is there another method to get the dimension of a worksheet, or am I maybe using getPageSize() in a wrong way?
SheetRender renderer = new SheetRender(sheet, options);
float[] floatArray = renderer.getPageSize(0);
int width = Math.round(floatArray[0]);
int height = Math.round(floatArray[1]);
return new Dimension(width, height);