
Ok - if you're like me, you have a list a mile long of those little things you want to fix / research / figure out / or just play with - and it seems that life has a tendency to make digging through that list take longer than we'd like . . .
Well, one of the little things on my list was getting icons for pdf files to display in my Sharepoint document libraries. I googled the answer months ago, but just never got around to doing it. Well - with more and more customers using Sharepoint, it was definitely time to take care of this, and make it easy to configure on multiple servers.
The process to do this is fairly simple - we find a 16x16 pdf icon and put it in the c:\program files\common files\microsoft shared\web server extensions\60\template\images directory. Then we open the c:\program files\common files\microsoft shared\web server extensions\60\template\xml\docicon.xml file, scroll down to the 'By Extension' section and add the entry
That's all fine & dandy - but I really dislike manual, repetitive steps - so I automated it :) I started with a docicon.xml file from a clean SBS install and added the necessary entry for the pdf extension. I then took the updated docicon.xml file, the 16x16 pdf image (pdf16.gif), and a simple batch file (pdficon.bat) that will put the files where they need to be and combined them all into a nice little zip file that you can get here.
Just download the file to your server, unzip & run the pdficon.bat file (locally on your server), and you should be good to go! Note that the batch file doesn't overwrite your existing docicon.xml file - it renames it to docicon.old before putting the updated file in the directory - so if you need to go back to the original for whatever reason, it's just a matter or renaming files.
Posted
Tue, Oct 26 2004 0:03
by
cgross