08 April 2009

PDF icon not displayed in the SharePoint search results.

Follow the steps below to enable the display of pdf icon in the SharePoint search result.

1. Search the internet for a pdf image, preferably a jpg or gif of size 16X16. You can use the image below as well.

2. Copy the pdf image into the images in the below location

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\IMAGES

3. Find in the DOCICON.xml file present in the below location

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\XML

4. Add the values <mapping key="pdf" value="yourimagefilename"> in the <byextension></byextension> section.

5. Reset IIS.

6. Search for any pdf file on the portal and the image should be visible now.

1 comment:

  1. So you are suggesting a change to a core component of SharePoint? You do realize that a service pack or hotfix could reset DOCICON.XML thus "removing" the change you made to display a pdf icon.

    ReplyDelete