How to change document properties