[print] tidy up so print to pdf works