in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

William's Blog

Gathering MOSS

PDF Document Type Icon in MOSS

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. 

Published Aug 09 2007, 05:54 PM by wpowell
Filed under: , ,

Comments

 

11 Links Today (2007-08-10) said:

Pingback from  11 Links Today (2007-08-10)

August 10, 2007 10:35 AM
 

wpowell said:

Same... but different ;)

August 10, 2007 2:26 PM
 

rtruchon said:

Great post.  Worked great after I figured out that I had to install it the web server front end not the crawl front end.

December 20, 2007 1:29 PM
 

Paul K said:

Thanks. Worked great.

February 7, 2008 6:06 PM
 

Jason Bradley said:

I've followed these instructions to the letter, triple checked, as well as similar instructions on other sites and am still seeing the default icon. Any suggestions?

June 4, 2008 1:46 PM
 

jwebster said:

Make sure that your case is correct in the XML tag.  My first attempt didn't work due to a lower case 'k'.  Once i changed 'key' to 'Key' everything worked fine.

July 3, 2008 12:50 PM
 

Alex said:

Which server  in a farm does this need to be performed on?

July 10, 2008 12:12 AM
 

William said:

Hi Alex,

All Web Front-Ends

July 16, 2008 1:07 PM
 

Robert said:

Thanks for the time saver :> It worked perfectly

July 31, 2008 3:01 PM
 

yesh said:

Hi William,

Can we do this deployment of PDF icon on all servers automatically? I mean is there any feature you are available which does the job of placing the pdf icon file on all servers and making an entry in the respective webconfig files. Please let me know if you are aware of any such feature or method.

Thanks,

Yesh

August 28, 2008 7:49 AM
 

William said:

Yesh,

I don't know of anything that exists today (doesn't mean it doesn't, just haven't searched). However, you're right, it would be pretty simple to create a feature/solution that did all this on all WFEs.

Regards,

William

September 2, 2008 7:26 PM
 

d said:

thanks! worked perfectly!

September 19, 2008 12:59 PM

Leave a Comment

(required )  
(optional )
(required )  
Add

About wpowell

Software Architect / Developer Lead

Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts