How to set PDF Icon for a PDF file in Document Library
- Copy the .gif file that you want to use for the icon to the following folder on the server, as appropriate for your version of SharePoint:
SharePoint Portal Server 2003 - Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Template\Images
SharePoint Server 2007- Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Image
SharePoint Server 2010 - Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\14\Template\Images
- Stop IIS at a command prompt by running IISReset /stop
- Edit the Docicon.xml file to include the .pdf extension. To do this, follow these steps:
- Start Notepad, and then open the Docicon.xml file. The Docicon.xml file is located in one of the following folders on the server:
SharePoint Portal Server 2003 - Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\60\Template\Xml
SharePoint Server 2007- Drive :\Program Files\Common Files\Microsoft Shared\Web server extensions\12\Template\Xml
SharePoint Server 2010- Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\14\Template\Xml
- Add an entry for the .pdf extension. For example, add a line that is similar to the following to the Docicon.xml file, where NameofIconFile is the name of the .gif file:
<Mapping Key="pdf" Value="NameofIconFile.gif"/>
- On the File menu, click Save, and then quit Notepad.
- Start IIS at a command prompt by running IISReset /start
Nice post
ReplyDeleteHello friends,
ReplyDeletePDF files are viewable and printable on virtually any platform. 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. Thanks...
Disable Printing