Fix so no download links are available for non-PDF files