By ensuring that the Buddha’s teachings were transmitted across millennia, the religion helped develop and spread printing techniques around the world – as a new exhibition reveals.