Fix pdf warning box and table display