You are currently offline, waiting for your internet to reconnect

How to add an icon to Windows SharePoint Services to represent Adobe PDF documents that are stored in document libraries

INTRODUCTION
This article describes how to specify the icon that Microsoft Windows SharePoint Services uses to represent Adobe Portable Document Format (PDF) documents that are stored in document libraries. To specify an icon for PDF documents, you have to add the .pdf file name extension and the name of the .gif file that you want to use for the icon to Windows SharePoint Services. After you do so, the icon is displayed next to all PDF documents that are stored in document libraries on your Windows SharePoint Services Web site.
MORE INFORMATION
To specify the .gif file that you want to use for the icon that represents Adobe PDF documents that are stored in Windows SharePoint Services document libraries, follow these steps:
  1. Copy the .gif file that you want to use for the icon to the following folder on the server:
    Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Template\Images
  2. Edit the Docicon.xml file to include the .pdf file name extension. To do so:
    1. Start Notepad, and then open the Docicon.xml file. The Docicon.xml file is located in one of the following folders on the server:
      Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\60\Template\Xml
      Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\12\Template\Xml
    2. In the <ByExtension> section of the Docicon.xml file, add an entry for the .pdf file name extension. To do so, add the following line, where NameofIconFile is the name of the .gif file:
      <Mapping Key="pdf" Value="NameofIconFile.gif"/>
      For example, if the name of the .gif file is MyPicture.gif, add the following line:
      <Mapping Key="pdf" Value="MyPicture.gif"/>
    3. On the File menu, click Save, and then exit Notepad.
  3. Restart Microsoft Internet Information Services (IIS). To do so:
    1. Click Start, and then click Run.
    2. In the Open box, type cmd, and then click OK.
    3. At the command prompt, type the following line, and then press ENTER:
      iisreset
    4. Type exit, and then press ENTER to exit Command Prompt.
The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these products.
REFERENCES
For more information about how to add document library icons for other document types, visit the following Microsoft Web site: For more information about Windows SharePoint Services, visit the following Microsoft Web site:
WSSv3 WSS
Properties

Article ID: 837849 - Last Review: 11/30/2007 07:01:09 - Revision: 2.4

Microsoft Windows SharePoint Services 3.0, Microsoft Windows SharePoint Services 2.0

  • kbhowto KB837849
Feedback