Regenerate document txt after saving a new version