remove unncessary bits of pdf