Heavy rain battered northeast Spain, flooding streets, trapping people in cars and injuring at least seven people, officials said Saturday.