PDF Icon in SharePoint 2010

Peace be upon you,

Here is a clean way for adding the PDF icon to be recognized by SharePoint document library and also by search results:


The post is also having links to information about how to index the contents of a PDF file with SharePoint search.

Also, you can understand from here how SharePoint is handling the file icons in general:


In case you wanted to get Icon URL for a file, here is comparison between SPUtility.MapToIcon and SPFile.IconUrl:



One thought on “PDF Icon in SharePoint 2010

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s