removing unnecessary pdf