Monday, February 23, 2009

Associated PDF file type with PDF icon

1. Find or Create an icon file you want to use (16x16 pixels)

2, Copy the icon file (.gif) to the location: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\IMAGES

3. Go up a level and go to the XML folder in the templates directory: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\XML

4. Open the DOCICON.xml file.

5. Go to the section

6. Go to the bottom of the section.

7. Add an entry for the PDF icon gif:

8. Save file and exit.

9. Perform an IISRESET


For pages with existing links you wish to have the icon attached to it, you will need to re-enter them in. Refreshing the page does not update the link with the icon you have specified.

No comments: