Search This Blog

Tuesday, October 20, 2009

[Tutorial] PDF iFilter for MOSS

 

There are a few posts on the net relating to PDF iFilter for MOSS and I haven't had a lot of luck with them including the one that was released by Adobe Labs for x64 bit. A few of our clients have requested capability to search the PDF documents and we didn't have a standard on how we go it done but one way or the other we did. Since people are still looking for ways to make this work I've decided to make a post that show how we got the iFilter to work.

I haven't tested this procedures on a x64 environment but i certainly know they work for a x86 environment.

This process should be installed on your indexing server.

Here is the process.

  1. Download the PDF iFilter 6.0 application from Adobe
  2. Stop the IIS Admin Services -- From Windows Services.
  3. Run your IFilter Install (Remember it needs to be on your indexing server)
  4. After the installation completes perform an IISRESET/noforce -- prevents data loss in case IIS has issues responding within a minute.

Add the PDF Icon to SharePoint -- this is more of a cosmetic thing to allow PDF files to be easily identified by your users

  1. Download a PDF Icon from Adobe based on your specification.
  2. Copy the Icon to SharePoint Images folder "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Images"
  3. Add the Icon mapping into the DOCICON.XML (Can be found at "C:\Program Files\Common Files\Microsoft Shared\Web server extensions\12\Template\Xml\".
  4. <Mapping Key="pdf" Value="pdficon.gif"/>
  5. Add PDF as a new search file in SharePoint Central Administration -> "Shared Services Provider(SSP)"--> Search Settings -> File Types

Configure SharePoint Index Server Registry to recognize the PDF IFilter as described in this Microsoft HotFix which I have iterated below

  1. Add the following registry entry, and then set the registry entry value to pdf:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Search\Applications\<GUID>\Gather\Search\Extensions\ExtensionList\38

    To do this, follow these steps:

    1. Click Start, click Run, type regedit, and then click OK.
    2. Locate and then click the following registry subkey:

      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Search\Applications\GUID\Gather\Search\Extensions\ExtensionList

    3. On the Edit menu, point to New, and then click String Value.
    4. Type 38, and then press ENTER.
    5. Right-click the registry entry that you created, and then click Modify.
    6. In the Value data box, type pdf, and then click OK.
  2. Verify that the following two registry subkeys are present and that they contain the appropriate values.
    Note These registry subkeys and the values that they contain are created when you installed the Adobe PDF IFilter on the server.
    • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Search\Setup\ContentIndexCommon\Filters\Extension\.pdf

      This registry subkey must contain the following registry entry:

      • Name: Default
        Type: REG_MULTI_SZ
        Data: {4C904448-74A9-11D0-AF6E-00C04FD8DC02}
    • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Search\Setup\Filters\.pdf

      This registry subkey must contain the following registry entries:

      • Name: Default
        Type: REG_SZ
        Data: (value not set)
      • Name: Extension
        Type: REG_SZ
        Data: pdf
      • Name: FileTypeBucket
        Type: REG_DWORD
        Data: 0x00000001 (1)
      • Name: MimeTypes
        Type: REG_SZ
        Data: application/pdf
  3. Upload the PDF documents to the Windows SharePoint Services 3.0 Web site.
  4. Stop and then start the Windows SharePoint Services Search service. To do this, follow these steps:
    1. Click Start, click Run, type cmd, and then click OK.
    2. Stop the Windows SharePoint Services Search service. To do this, type net stop spsearch at the command prompt, and then press ENTER.
    3. Start the Windows SharePoint Services Search service. To do this, type net start spsearch at the command prompt, and then press ENTER.
    4. Type exit to exit the command prompt.

Hopefully this saves someone the headache of trying to get the iFilter to work

Reference from : lmundia’s Blog

No comments:

Post a Comment