-
-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Hi. I appreciate the existence of this useful library.
A while ago, i was using SODS 1.7.0 and when i went to set row height and column width, i didn´t find a reference unit so i assumed that it was in cm (as is shown to me in LibreOffice 7.6.7.2) but after opening the generated file, both row height and column width were 10 times smaller than expected.
Now, after reviewing the content.xml file (after converting the generated .ods to .zip) to find a reference unit i found this:
<style:table-row-properties style:row-height="0.5mm">
and
<style:table-column-properties style:column-width="0.5mm">
So the unit is in millimeters.
But if i use LibreOffice to open the .ods generated by SODS and then set the column width and row height values (0.5 cm) and save the file, the unit is saved in cm:
<style:style style:name="co1" style:family="table-column"><style:table-column-properties fo:break-before="auto" style:column-width="0.499cm"/>
<style:table-row-properties style:row-height="0.499cm" fo:break-before="auto" style:use-optimal-row-height="false"/>
So considering this, i think that it would be helpful to see in the javadoc the reference unit for this type of values so the developer would know which unit SODS will use to generate the .ods file. Also, i don´t know if being able to choose an expected unit (cm, mm, etc.) would be a viable approach.
files:
sods_generated_file.ods
sods_file_overwritten_with_libreoffice.ods