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.

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:
a. 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
b. 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"/>
c. On the File menu, click Save, and then quit Notepad.
3. Restart Microsoft Internet Information Services (IIS). To do so:
a. Click Start, and then click Run.
b. In the Open box, type cmd, and then click OK.
c. At the command prompt, type the following line, and then press ENTER:
    
iisreset
d. Type exit, and then press ENTER to quit Command Prompt.

Article ID: 3, Created On: 10/24/2008, Modified: 6/9/2009

Comments (0)