Spain and Barcelona goalkeeper Victor Valdes will be out for seven months after undergoing successful knee surgery.