About Me

Hello, My name is Vishal Joshi,SharePoint Expert since 2009 and I work as a Senior SharePoint Administrator for WT. Kindly have a look at the posts and leave a comment if a post helped you.

2011-03-15

How can I get PDF File Type icon for particular document library in sharepoint 2007

To get the DocumentType Icons in the Grid View, you can go to the Views and Check the File Type Check box as suggested by Chirag.
But in case if you want to get the PDF File Type Icon you need to follow the link or the steps mentioned below
Steps
1.    Download an appropriate icon for pdf document types. The PDF Icon is available at the following link
2.   Save the .gif file to TEMPLATE\IMAGES directory. (DEFAULT: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\template\images)
3.   Open the file docicon.xml. (DEFAULT: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\template\xml\docicon.xml)
4.   Add a new Mapping element to the ByExtension element.
<Mapping Key="pdf" Value="pdficon_small.gif" />
NOTE: Be sure to change pdficon_small.gif to whatever image you downloaded to represent pdf documents.
5.    Save the edited docicon.xml file

6.    Restart IIS (iisreset /noforce).
You should now see the PDF icons for all PDF documents in the portal, including search results.

No comments:

Post a Comment