Novak Djokovic has withdrawn from this year's French Open ahead of Ruud quarter-final due to a knee injury.