NEW YORK — Thanks to the printed word and the moving image, Salman Rushdie has recaptured the worst part of his life and relived one of the best.

Last fall, the 65-year-old author published the best-selling memoir “Joseph Anton” about his years in hiding that followed the 1988 publication of “The Satanic Verses” and the call for his death by Iran’s Ayatollah Ruhollah Khomeini. Rushdie is now promoting the film adaptation of his breakthrough novel, “Midnight’s Children,” winner of the Booker Prize in 1981 and one of the most highly praised works of fiction of its time.

“It was cathartic to write ‘Joseph Anton,”’ Rushdie explained during a recent interview, wearing a gray suit and no tie, sipping coffee at a hotel rooftop garden in midtown Manhattan. “And ‘Midnight’s Children’ was the book where I really became a writer.”

Much of the world only learned about Rushdie after “Satanic Verses,” which was condemned by the Ayatollah and others as blasphemous and made him an author far more talked about than read. Forced to live under an assumed name, Joseph Anton, he felt as if he had lost control of his own life’s narrative. In his memoir, he turns himself into a kind of literary character, referring to himself in the third person, and uses narrative to get his own back.

“Now that time belongs to me,” he said. “It’s not just something that happened to me.”

In the literary community, Rushdie’s had long been an honored name because of “Midnight’s Children.” More than 500 pages, it’s a multi-layered narrative about Saleem Sinai, a child born at the very moment of India’s independence from Britain, and his terrifying, exhilarating and fantastic adventures that join his story to the story of his country. .

Until now, none of Rushdie’s books had been made into movies and “Midnight’s Children” seemed an unlikely candidate to go first. When Rushdie first met with director Deepa Mehta, they were supposed to discuss a more recent novel, “Shalimar the Clown.” But Mehta, whose films include the Oscar-nominated “Water,” also asked about the rights to “Midnight’s Children.” Rushdie, surprised by her interest, agreed.