Register a PDF IFilter for SharePoint 2010 (Foundation and Other Versions)


To Install an configure PDF Ifilter on SharePoint Foundation Installation follow the below steps 

  1. Install PDF iFilter 9.0 (64 bit) from http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025
  2. Download PDF icon picture from Adobe web site http://www.adobe.com/misc/linking.html and copy to C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14TEMPLATEIMAGES 
  3. Add the following entry in docIcon.xml file, which can be found at: C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14TEMPLATEXML
    Add the new entry (value is the name of image for pdf in Images directory of sharepoint in step 2)

    <Mapping Key=”pdf” Value=”pdf.gif”/>

  4. Copy the below content to a VBS file and save it (I.E save file name as AddExtension.vbs)

    —————–

    Sub Usage

        WScript.Echo “Usage:    AddExtension.vbs extension”
        WScript.Echo

    end Sub

    Sub Main

        if WScript.Arguments.Count < 1 then
                    Usage
                    wscript.Quit(1)
       end if

        dim extension
        extension = wscript.arguments(0)

        Set gadmin = WScript.CreateObject(“SPSearch4.GatherMgr.1”, “”)

        For Each application in gadmin.GatherApplications
            For Each project in application.GatherProjects
                        project.Gather.Extensions.Add(extension)
                    Next
        Next

    End Sub

    call Main

    ———————–

  5. Copy the above script file to Sharepoint Foundation 2010 Server
  6. Run it from Command Prompt
    > WScript AddExtension.vbs pdf
  7. Register PDF ifilter as below:
    4-1.       Find regkey “HKEY_LOCAL_MACHINESOFTWAREMicrosoftShared ToolsWeb Server Extensions14.0SearchSetupContentIndexCommonFiltersExtension”
    4-2.       Right-Click – [New]-[Key]. Then specify key name “.pdf”
    4-3.       Right-Click (Default) of above “.pdf” key then click “Modify”
    4-5.       Specify value “{E8978DA6-047F-4E3D-9C78-CDBE46041603}”
    4-6.       Restart SPSearch4
  8. Run crawl as below
    >stsadm –o spsearch –action fullcrawlstart
  9. Confirm the pdf files can be found in search results
To Install an configure PDF Ifilter on SharePoint Standard OR Enterprise
     1.Install PDF iFilter 9.0 (64 bit) from http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025
  1. Download PDF icon picture from Adobe web site http://www.adobe.com/misc/linking.html and copy to C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14TEMPLATEIMAGES 
  2. Add the following entry in docIcon.xml file, which can be found at: C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14TEMPLATEXML

    Add the new entry (value is the name of image for pdf in Images directory of sharepoint in step 2)
    <Mapping Key=”pdf” Value=”pdf.gif”/>
  3. Add pdf file type on the File Type page under Search Service Application
  4. Open regedit
  5. Navigate to the following location:
    HKEY_LOCAL_MACHINESOFTWAREMicrosoftOffice Server14.0SearchSetupContentIndexCommonFiltersExtension
  6. Right-click > Click New > Key to create a new key for .pdf
  7. Add the following GUID in the default value 
    {E8978DA6-047F-4E3D-9C78-CDBE46041603}
  • Restart the SharePoint Server Search 14
  • Reboot the SharePoint servers in Farm
  • Create a Test site (with any out-of-box site template) and create a document library upload any sample PDF document(s).
  • Perform FULL Crawl to get search result.
  • Once the crawl is completed we will get search results.

3 thoughts on “Register a PDF IFilter for SharePoint 2010 (Foundation and Other Versions)

  1. Hi Dhirendra
    I'm following your workthrough to add a PDF ifilter to my new Sharepoint Foundation 2010 install.

    However Point 3 doesn't seem to be complete… you state to add the 'following entry in docIcon.xml' but there is no following guidance for entering the correct entry to docIcon.xml.

    Could you please complete your post?
    Thanks

  2. Hello Dhirendra. For some reason I cannot find the registry key (HKEY_LOCAL_MACHINESOFTWAREMicrosoftOffice Server14.0SearchSetupContentIndexCommonFiltersExtension). All I can see is HKEY_LOCAL_MACHINESOFTWAREMicrosoftOffice.. and thus I cannot find the Filters under it.

    I'm running on Windows Server 2008R2 x64 with Office 2010 installed and sharepoint foundation 2010

Leave a Reply

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