Prasad Bolla's SharePoint Blog

Click Here to go through the Interesting posts within my Blog.

Click Here to go through the new posts in my blog.

Friday, December 02, 2011

How to set PDF Icon for a PDF file in Document Library in SharePoint Server



How to set PDF Icon for a PDF file in Document Library
  1. 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
  1. Stop IIS at a command prompt by running IISReset /stop
  2. Edit the Docicon.xml file to include the .pdf extension. To do this, follow these steps:
    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:
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
    1. 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"/>
    1. On the File menu, click Save, and then quit Notepad.
  1. Start IIS at a command prompt by running IISReset /start

2 comments:

  1. Hello friends,

    PDF 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

    ReplyDelete