HJ Heinz is considering whether to appeal a court ruling in Italy that has banned an advert that compared its products with those from rival Barilla.