Company B has to cancel his visa and get a new NOC from Company A. To get Engineer visa, the person has to get his education document attested. You can get more info on attestation from www.asiaattestation.com