docx_reader/types/
emu.rs

1
2
3
4
5
6
7
8
9
10
11
// One inch equates to 914400 EMUs and a centimeter is 360000 one pixel equates to 9525
// https://openpyxl.readthedocs.io/en/stable/api/openpyxl.utils.units.html
type Emu = u32;

pub fn to_px(v: Emu) -> u32 {
	v / 9525
}

pub fn from_px(v: Emu) -> u32 {
	v * 9525
}