Ja'far ibn Yahya


Jafar ibn Yahya Barmaki or Jafar al-Barmaki , also called Aba-Fadl, was a Persian vizier of the Abbasid caliph Harun al-Rashid, succeeding his father in that position. He was a member of the influential Barmakid family, formerly Buddhist leaders of the Nava Vihara monastery. He was executed in 803 at the orders of Harun al-Rashid.
He had a reputation as a patron of the sciences, and did much to introduce Indian science into Baghdad. He was credited with convincing the caliph to open a paper mill in Baghdad, the secret of papermaking having been obtained from Tang Chinese prisoners at the Battle of Talas in 751.

In fiction

Jafar also appears along with Harun al-Rashid in several Arabian Nights tales, often acting as a protagonist. In "The Three Apples" for example, Jafar is tasked with solving a murder, whereas in "The Tale of Attaf", Jafar is more of an adventurer.
More recent media inspired by the Arabian Nights have portrayed Jafar as both a villain and a sorcerer: