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



The information in this article applies to:

  • Microsoft Windows SharePoint Services

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 the following folder on the server:

      Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\60\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 quit 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 quit 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, regarding the performance or reliability of these products.

REFERENCES

For additional 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:

Modification Type:MajorLast Reviewed:3/30/2004
Keywords:kbhowto KB837849 kbAudITPRO