pdf painter exception