Change PDF Icon in SharePoint

By default, SharePoint does not include PDF document file type icon. So we need to do the below changes to display the PDF icon for PDF files in our SharePoint environment. Here is how we can add PDF icon in SharePoint 2010:

  1. Download an appropriate icon for the PDF document type. You can download the PDF icon for SharePoint from 
  2. Copy the downloaded PDF icon to “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\template\images” (Don’t forget to set the read, Read & Execute permissions to “Domain Users” to that PDF icon file!)
  3. Open the docicon.xml from C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\template\xml\docicon.xml
  4. Add an entry under <ByExtension> node:
<Mapping Key="pdf" Value="pdficon_small.png"/>

Once done, you will get the PDF icon in SharePoint library as in below screen: SharePoint 2010 displays PDF icon.

Display PDF Icon in SharePoint
  • Microsoft KB article:
The same method applies, If you want to provide support for custom file type icons. Refer: How to Add Custom File Type Icons in SharePoint

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world articles!

Leave a Reply

Your email address will not be published. Required fields are marked *