When you search for pdf file, as default, SharePoint just looks for metadata and return search result with your expected. But the icon of pdf files display as unknow document type and important is SharePoint can not search within pdf content.

In this post, I will show you how to configure pdf icon in search result or document library and enable full text search for pdf content file.

1. Configure PDF Icon

– Download PDF Icon from  Adobe website: http://www.adobe.com/images/pdficon_small.gif and save it to Images folder under 14 hive folder (In my case C:\Program Files\Common Files\Microsoft Shared\Web server extensions\14\Template\Images)

– Open Command Prompt and type IISRESET -Stop to stop IIS and edit Docicon.xml

– Navigate XML folder  from C:\Program Files\Common Files\Microsoft Shared\Web Server extensions\14\Template\Xml  and open Docicon.xml by NotePad

– Insert <mapping key=”pdf” value=”pdficon_small.gif ” /> within the <ByExtension> section

– Save and Run command IISRESET -Start

– Add PDF file to the supported file types list

  • Open SharePoint Central Administration and login with Administrator permission
  • Click on Manage service applications link under Application Management section
  • Click on Search Service Application
  • In the Search Administration configuration page, click on File Types link from left sidebar
  • Select “New File Type”
  • In File extension textbox, type PDF and then click OK
  • Come back to file types list, confirm that PDF file in the list and show with pdf icon.

– Reload to see result in search page or document library

2. Install Adobe PDF iFilter

– As you know, PDF file is the standard and published by Adobe, that is the reason why SharePoint is not include as default of search. Adobe released Adobe PDF iFilter 9 for 64-bit platforms, which will allow searching PDF files on Microsoft Windows 64-bit platforms for desktop search,  Microsoft Office SharePoint Server, Microsoft Exchange Server, and Microsoft SQL Server… More information and download you can visit http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025 for iFilter verson 9

– Download and install PDFiFilter64installer.exe

– Follow installation instructions to complete install and configure SharePoint server to enable PDF indexing. This instructions is used for SharePoint 2007 but it nearly same on SharePoint 2010.

– Finally, Login Central Admin, Navigate Manage Service Application -> Search Service Application -> Select Content Source and Start Full Crawl. You have to run full crawl because SharePoint indexes file name in old file type extension list if you run Incremental  Crawl, so that when a new file type is added, it’s required to perform a full crawl to identify all file type in new list.

– Try to make a search within PDF content to test and the result should be like this

If you are not sure and confident with manually configuration as above. You can use the power shell script for out of box automatically configuration from configure PDF Icon to complete PDF iFilter installation. Download the script here. Thanks Josko for useful script.


Hoang Nhut Nguyen

Email: nhutcmos@gmail.com

Skype: hoangnhut.nguyen