SharePoint 2013: Replace the PDF icon

18 Sep 2012
September 18, 2012

Icon madness

I uploaded a PDF to SharePoint 2013 and noticed that the PDD icon is not the official and recognizable Adobe PDF icon. In this article I will tell you how to replace the SharePoint 2013 PDF icon.

MS_PDF_ICON

OOTB PDF icon from SharePoint 2013

Is it a document with a belt or what ? Nevermind I don’t like it and I am very certain that most of the users out there do not recognize the icon – and that is the main purpose of the icon right?

Search_WithMSPDF

Search result with out-of-the-box SharePoint 2013 PDF icon

With SharePoint 2010 there was no PDF support out of the box – afaik there was no icon at all. I should be happy and quite right? Nope, created a small powershell that replaced the icon (either you place it next to the script or the script downloads it from the Adobe page).

The result will look like this – way better if you ask me.

Search_WithOriginalPDF

Original PDF icon – as expected!

PDF_Doclib

Same icon in a document library

 

Powershell to the rescue – once again!

And here comes the small script:

 

Thats it – go try it!

As always, would love to hear your feedback.

Max Melcher
Follow me!

Max Melcher

Maximilian Melcher (MCSE, MCPD) is a Principal Consultant working at Alegri International Services in Munich, Germany. Max is a specialist in SharePoint technologies focused on search, social computing, web content management and collaboration. Max has led SharePoint implementations for Dax 30 companies since 2009.
Max’s free time is spent on twitter (@maxmelcher) mostly with a good coffee in his hands.
Max Melcher
Follow me!
Tags: , , ,
5 replies
  1. Alan M. says:

    This worked perfectly. You, sir, are a hero.

    Reply
  2. Anthony Edwards says:

    C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\TEMPLATE\IMAGES

    I had to update the file here as well, thanks very much!!

    Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *