The former pontiff wrote a total of 66 books, three encyclicals and four apostolic exhortations. He was even portrayed by Anthony Hopkins in the film “The Two Popes.”