Adding pdf as an extension to be ignored