Which converts a width from pixels to centimeter, based on 96 pixels = 1 inch = 2.54 cm. However I still don't get the correct output that I want, I want to set the width of column 1 to 149px but it seems impossible because the unit of measurement being used by setWidth is not documented.
Google Sheets use
pixels
for column widths. I'm using LibreOffice which hascentimeter
.I constructed this function:
Which converts a width from pixels to centimeter, based on
96 pixels = 1 inch = 2.54 cm
. However I still don't get the correct output that I want, I want to set the width of column 1 to149px
but it seems impossible because the unit of measurement being used bysetWidth
is not documented.