Fix pdf content type when load