When monastic libraries were destoryed , what was lost ?
By the 8th century first Iranians and then Arabs had imported the craft of papermaking from China , with a paper mill already at work in Baghdad in 794 .