Oct 28, 2009

Showing the PDF Icon in a SharePoint Document Library

Out of the box, you won't see the PDF icon in WSS 3.0 document libraries as you see MS Office icons next to office documents.
  1. Download the small icon file from adobe. http://www.adobe.com/misc/linking.html#pdficon
  2. Save the icon in the c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\IMAGES folder.
    -You can rename it to match the standard naming convention.
  3. Open (in notepad) the DOCICON.XML file located in the c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML folder.
  4. In ByExtension -->section add the tag >Mapping Key="pdf" Value="icpdf.gif" OpenControl=""/>-Change the direction of the first > (just left to Mapping) to make the markup work right.
  5. Save.
  6. Reset IIS.
  7. You should now see  all PDF documents with the correct icon.

1 comment:

  1. The best, most straigtforward solution I've found. Thanks for sharing!

    ReplyDelete