Is there a way to force recalculation of formulae/row heights before converting an ods file via command-line (--convert-to)?

Invoking from a php script, some but not all formulae are recalculated, and none of the row heights. Thanks in advance for any help.