Pakistan opener Taufiq Umar has been ruled out of the forthcoming Test series with South Africa because of a leg injury.