One of the annoying things I have found using SharePoint 2007 was the inability to upload a PDF file and see a PDF icon next to the file name, this situation has not changed with SharePoint 2010 so I thought I would run through how to add an icon file for PDF and other unsupported file types in SharePoint 2010.
Working in a school you do find a vast array of different software applications being used, as an example we use the entire Abode Creative suite so when a member of staff uploads a fireworks file to SharePoint there appears just a blank icon. So one of the things we have to put on the snagging list for our 2010 rollout is making sure that all the file types we use have an associated icon file appear next to the names in a document library. This is basically the same process as with 2007 apart from some path changes so.
On your SharePoint server navigate to (default install)
“C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES”
And place a 16 x 16 picture file (Gif, Jpg or Png) of the file type you wish to add All the icon files in the images folder have the format ic***.gif so I named my PDF icon icpdf.gif
After you copy the picture file you need navigate to
“C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML”
And edit the DocIcon.xml with notepad and add the line
<Mapping Key=”pdf” Value=”icpdf.gif”/>
Once this is edited and saved (I would also recommend doing a backup of the file before you save it) you will need to do an IISreset before the icon will display.
Also please bear in mind a couple of points if you have more than 1 server in your farm you will need to repeat this procedure on all of your servers and please backup the docicon.xml file and image files away from your servers as they may get overwritten with updates.
Dave
Related posts:
- Create SharePoint 2010 sites using PowerShell reading an XML file Just a quick post to show how easy it is...
- SharePoint 2010 Powershell Commands Help Yesterday i did a post The first steps to SharePoint...
- Using PowerPoint 2010 themes in SharePoint 2010 In 6 Easy Steps Creating your own theme for SharePoint 2010 used to be...
- The first steps to SharePoint 2010 PowerShell Heaven As Chris showed in his post last week Create SharePoint...










18 comments
14 pings
Daniel Keegan
February 19, 2010 at 5:06 pm (UTC 0)
Nice guide, I’m dying of jealousy to see you getting your hands dirty already.
Dave Coleman
February 19, 2010 at 5:09 pm (UTC 0)
Thanks Daniel i love 2010 already and plenty more posts to come, just writing one now on Drop folders for Monday.
microtech
May 16, 2010 at 5:41 am (UTC 0)
okay i’ll add that up to my SharePoint Training anyway i am still in the process of learning and now there’s the latest version of MOSS the MOSS 2010! ow! anyway thanks for your very comprehensive and informative post. I actually had my first training on http://www.solartechnj.com/sch_microsoft_sharepoint_training_moss.asp and it’s kinda nose-bleeding and heart-stabbing.
school grants
June 21, 2010 at 9:57 am (UTC 0)
Great site. A lot of useful information here. I’m sending it to some friends!
Karen
September 8, 2010 at 5:52 pm (UTC 0)
When I started to read this I was totally excited, however, after following the steps exactly it isn’t working. I am running SP2010 in an 2008r2 environment. I mainly use PDF for most of the documentation, but my company also creates other files with different extensions that I wanted to add as well – neither is working for us. I really want to be able to take care of this. We have restarted the server, IIS, and the crawl multiple times – still nothing. Please let me know if you have more advice with this environment.
Leif Hurst
January 4, 2011 at 7:15 pm (UTC 0)
did not work for me… made changes to both front end servers and did a IISreset on both.
gave me red x’s for the pdf icon and the xls icon (?!). Reverted back, IISreset and we’re back to typical.
Dave Coleman
January 4, 2011 at 7:47 pm (UTC 0)
Hi Leif
Did you copy the lines from the blog post if so it could be word formatting that is the problem check out http://www.sharepointedutech.com/2010/11/08/when-is-a-quotation-mark-not-the-correct-quotation-mark-in-sharepoint-2010/
Dave
Bastiaan
July 11, 2011 at 3:54 pm (UTC 0)
Hi there. If you copy “” straight to your DOCICON.XML file, you’ll notice other quotes are used. You will need to use the ” quote and not the ”. Small difference, but if you use the quotation marks used in the example up here, things won’t work.
Dave Coleman
July 11, 2011 at 3:58 pm (UTC 0)
Thanks i did correct in a later post here http://www.sharepointedutech.com/2010/11/08/when-is-a-quotation-mark-not-the-correct-quotation-mark-in-sharepoint-2010/
Dave
Micahel
September 23, 2011 at 7:34 am (UTC 0)
Blasted IE copy-paste!!!
Pat
October 11, 2011 at 8:23 pm (UTC 0)
I had the quote mark error, but realized it and fixed it. But that didn’t work so I rebooted the servers and now I’m getting a HRESULT: 0×80041054 error. I replaced the edited files with the backed up versions but no dice, same error. This may be a coincidence and it’s really something else (like Symantec). Has anyone else had this problem?
Dave Coleman
October 11, 2011 at 10:08 pm (UTC 0)
Hi Pat
I have never seen that happen before.
Sorry
Dave
Jane Ratnovsky
November 10, 2011 at 10:27 pm (UTC 0)
I did everything that you told in your post. Add PDF icon 16X16< change .xml file coping and paste a line and change the name. I reset IIS using IISreset command. But nothing changes in my SharePoint: my .PDFs still have blank icons. I even clear Internet cash. Any suggestions?
Jane Ratnovsky
November 10, 2011 at 10:47 pm (UTC 0)
I found what was wrong. It works!!!
Michael Saroyan
December 12, 2011 at 3:57 pm (UTC 0)
It didn’t work for me either at first. I followed this and it worked.
http://www.sharepointsharon.com/2010/03/sharepoint-2010-and-adobe-pdf/
M.S
Carlos
January 17, 2012 at 8:57 pm (UTC 0)
Its Works, Thanks!!!
shover
February 4, 2012 at 1:21 am (UTC 0)
Ok, but what you really need to do to do is install a PDF Ifilter. This makes them searchable. the steps aove are part of this process
Dave Coleman
February 4, 2012 at 8:22 am (UTC 0)
Very true but this covers all the file types that do not have an icon i.e. fireworks, photoshop etc for an ifilter setup guide see this post http://www.sharepointedutech.com/2010/09/07/setup-guide-for-pdf-ifilter-in-sharepoint-2010/
Dave
uberVU - social comments
February 18, 2010 at 5:36 am (UTC 0)
Social comments and analytics for this post…
This post was mentioned on Twitter by ibander: RT @davecoleman146: New Blog post “Changing File Associations Icons in SharePoint 2010″ http://bit.ly/bXpbmI #sp2010 #sharepoint2010 Plz RT…
SharePoint and Server 2008 R2 (Better Together) « Chris and Dave's SharePoint And Tech Blog
April 2, 2010 at 11:19 am (UTC 0)
[...] and Server 2008 R2 (Better Together) 2 04 2010 A while ago I did a post on adding icons for SharePoint 2010 and MOSS 2007 so that you get icons in document libraries for PDF and other files that do not have file [...]
Opening PDFs in SharePoint 2010 « Chris and Dave's SharePoint And Tech Blog
May 5, 2010 at 1:01 pm (UTC 0)
[...] may have noticed in the first screen shot there was no PDF icon. Well, follow this guide to right that [...]
Opening PDFs in SharePoint 2010 « Chris and Dave's SharePoint And Tech Blog
May 5, 2010 at 1:01 pm (UTC 0)
[...] may have noticed in the first screen shot there was no PDF icon. Well, follow this guide to right that [...]
Öffnen von PDFs im Browser in SharePoint 2010 Umgebungen « Sharepoint Infoblog
May 5, 2010 at 3:26 pm (UTC 0)
[...] may have noticed in the first screen shot there was no PDF icon. Well, follow this guide to right that wrong! Kategorien:Allgemein Kommentare (0) Trackbacks (0) Einen Kommentar [...]
Chris and Daves SharePoint and Tech Blog » Remove the gap between the Icon and Title in SharePoint 2010 document library
August 23, 2010 at 10:50 am (UTC 0)
[...] I was at it I also updated the DOCICON.XML and associated images to make the folder icon and a few others more up-to-date. Results [...]
Chris and Daves SharePoint and Tech Blog » Setup Guide for PDF iFilter in SharePoint 2010
September 7, 2010 at 7:27 am (UTC 0)
[...] So through this post I will show how to install and configure the iFilter for PDF, the first step is to make sure the PDF icon shows up when you upload a PDF file if not how to achieve this is here. [...]
Opening PDFs in SharePoint 2010 « Experience & Solution 410
January 27, 2011 at 8:04 am (UTC 0)
[...] may have noticed in the first screen shot there was no PDF icon. Well, follow this guide to right that [...]
SharePoint and Server 2008 R2 (Better Together) - SharePointEduTech
April 24, 2011 at 1:45 pm (UTC 0)
[...] while ago I did a post on adding icons for SharePoint 2010 and MOSS 2007 so that you get icons in document libraries for PDF and other files that do not have file [...]
Opening PDFs in SharePoint 2010 - SharePointEduTech
April 24, 2011 at 3:14 pm (UTC 0)
[...] may have noticed in the first screen shot there was no PDF icon. Well, follow this guide to right that [...]
Eugenie
June 20, 2011 at 4:14 pm (UTC 0)
very helpful…
I preferred to thank you for this good article. http://nxysm.blogcu.com/framed-scream/10662816 I by all odds liked every little bit of it…
Add a PDF icon to PDF documents in SharePoint 2010 « the REAL seanism
June 24, 2011 at 7:37 pm (UTC 0)
[...] http://www.sharepointedutech.com/2010/02/17/changing-file-associations-icons-in-sharepoint-2010/ Tagged as: 2010, iis, pdf, sharepoint Leave a comment Comments (0) Trackbacks (0) ( subscribe [...]
Add .csv image to SharePoint 2010 « B.J. Fentress
August 12, 2011 at 3:12 am (UTC 0)
[...] http://www.sharepointedutech.com/2010/02/17/changing-file-associations-icons-in-sharepoint-2010/ [...]
Latest Softwares Review and Download
November 25, 2011 at 10:22 am (UTC 0)
Softwares Reviews and Downloads…
I found your entry interesting do I’ve added a Trackback to it on my weblog
……