set permissions after creating the document
Merge branch 'master' of https://github.com/HaukeBartsch/MagickBox