pdf painter exception removed