Pakistan's election commission on Thursday demanded a signed apology from Pakistan Tehreek-e-Insaf Chairman and Prime Minister-in-waiting Imran Khan for violating the electoral code of conduct while casting his vote during the general election on July 25, according to a media report.