Btw, I suggest using `CSSUnits` here, getting rid of `cmPerPixel` - ideally in a separate commit - and not assuming the page dimensions as being in `cm`.

In fact, `CSSUnits.convertMeasure` automatically detects the unit of the argument (like `"4in"`, `"5cm"`), and converts it to the desired unit.