PDF Document Type Icon in MOSS 2007

MOSS doesn’t install an icon for PDF files by default. It simply shows a generic white paper icon.

This is my procedure for fixing this issue:

  1. Download an appropriate icon for pdf document types.
    1. This is the icon from Adobe.
    2. Save to TEMPLATE\IMAGES directory. (DEFAULT: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\template\images)
  2. Open the file docicon.xml. (DEFAULT: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\template\xml\docicon.xml)
  3. 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.
  4. Save the edited docicon.xml file.
  5. Restart IIS (iisreset /noforce).

You should now see the PDF icons for all PDF documents in the portal, including search results.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.