Home » FAQs


How to Add a PDF or Other Icon to Sharepoint Document Library?
Submitted By Satheesh Babu B
On 12/22/2008 8:07:44 AM
Tags: Sharepoint  

Adding PDF Icon to Document Library

Below are the steps you need to follow to display a pdf icon just in front of the actual file when displaying it in the sharepoint document library.



 1) Login to the box where Sharepoint is installed and go to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Template\Images. Change the file view to Thumbnails view in the explorer and try to find the pdf icon and in our case, it will not be there so we need to copy a .gif pdf icon file to the folder.


2) Next, go to C:\Program Files\Common Files\Microsoft Shared\Web server extensions\60\Template\Xml or C:\Program Files\Common Files\Microsoft Shared\Web server extensions\12\Template\Xml and open Docicon.xml file and add the following tag so that sharepoint uses the copied image as icon for pdf files.

<Mapping Key="pdf" Value="pdf.gif"/>


We need add the above tag inside <ByExtension> tag.



To add any other file icon repeat the above steps with their icons.


Now restart the IIS and see it in action.


To restart IIS, type "inetmgr" in RUN(Press Win Key + R) and restart the website or type IISRESET in RUN.

Recent FAQs
  • View All FAQs..