Thursday, January 20, 2011

Missing PDF Icon in SharePoint 2010

Notice when you upload a PDF file in document library of your SharePoint 2010 site, the icon is not there. SharePoint does not have the definition for icon of PDF files.

To get the document library show PDF or any other icons, follow these steps
  1. Open folder [drive]\Program Files\Common Files\Microsoft Shared\Web server extensions\14\Template\Images.
  2. Copy PDF icon in this folder. (You can get PDF icon from It is recommended to download 17 x 17' )
  3. Stop IIS by running iisreset/stop on command prompt.
  4. Open folder [drive]\Program Files\Common Files\Microsoft Shared\Web server extensions\14\Template\Xml
  5. Make a copy of DocIcon.xml file.
  6. Open DocIcon.xml and add < Mapping Key="pdf" Value="[Name-Of-Icon-File.gif]" />
  7. Save and close DocIcon.xml file.
  8. Start IIS again by running iisreset/start on command prompt.

Now go to your document library where you uploaded PDF file and verify the icon.

For SharePoint Portal Server 2003: Use 60 in place of 14
For SharePoint Portal Server 2007: Use 12 in place of 14

No comments: