Friday, May 25, 2012

PDF icon not displayed on your SharePoint site

If you've recently set up your SharePoint farm and noticed that a generic icon is being displayed for the PDF files in your document libraries, here are a few steps that you can use to add that icon to your farm:

  1.  Open IE and access the following link to obtain an official copy of the small, 16x16 Adobe logo, pdficon_small.png:  http://www.adobe.com/misc/linking.html
  2.  Log on to your SharePoint web front end server
  3.  Open Windows Explorer and navigate to the C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES directory
  4.  Copy the pdficon_small.png file to this location
  5.  Navigate to the C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML directory and locate the DOCICON.xml file
  6.  Open the DOCICON.xml file with Notepad
  7.  In the <ByExtension> node, add the following line: <Mapping Key="pdf" Value="pdficon_small.png" />
  8.  You'll need to reset IIS for the changes to take effect:
    1. Open a command prompt
    2. Type "iisreset"
    3. Hit Enter

NOTE:  For SharePoint 2007, you'll need to make the following minor modifications to the steps above:
  • For Step# 3, use C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\IMAGES instead
  • For Step# 5, use C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\XML instead

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.