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:

http://stefvanhooijdonk.com/2010/08/27/pdf-icon-in-sharepoint/

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:

http://msdn.microsoft.com/en-us/library/ms463701.aspx

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

http://www.bwaretech.com/en/Community/Team_Blog/EntryId/12/SPUtility-MapToIcon-vs-SPFile-IconUrl.aspx

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s