Alexander’s Blog

January 18, 2009

Installing 64-bit PDF iFilter 9 on Windows Server 2008 for MOSS 2007

by @ 11:58 am. Filed under Articles, SharePoint, Tips & Tricks

Unlike Office icons (Word, Excel, etc.), by default, PDF icons are not displayed on the Microsoft Office SharePoint Server (MOSS) 2007 sites when you add a PDF document. Also, you cannot search the contents of a PDF file and the search results do not display PDF icons. For Windows Server 2003 (32- and 64-bit) there are some KB articles and other documentation that shows you exactly how to display a PDF icon. I couldn’t find any documentation for 64-bit Windows Server 2008 and wasn’t able to get the icon to display using the Windows Server 2003 (x64) instructions from Microsoft. I tried Microsoft blogs, KB articles, and other Web sites but the instructions for Windows Server 2003 didn’t work for my Windows Server 2008. If you are able to get them to work that’s great. If not, read on.

Recently I discovered that Adobe finally came out with a new Adobe iFilter 9 for 64-bit platforms which allows searching PDF files on 64-bit Windows platforms for MOSS 2007, Exchange 2007, and SQL Server 2005. I tried this new iFilter and was able to get it to work. I decided to document these instructions for people who may be running MOSS 2007 on Windows Server 2008.

By the way, Adobe has tested their iFilter 9 on the following systems:

Desktop environment
• Microsoft Windows XP x64 with Service Pack 2: Windows Desktop Search 3 and 4, Windows Indexing Service
• Microsoft Windows Vista x64 with Service Pack 1: Windows Search 4

Server environment
• Microsoft Windows Server 2003 x64 Edition R2 with Service Pack 2: SharePoint Server 2007, Exchange Server 2007, Windows Desktop Search 3
• Microsoft Windows Server 2008 x64 with Service Pack 1: SharePoint Server 2007, SQL Server 2005, Windows Search 4

Installation

Adobe has not tested the iFilter on MOSS 2007 running on Windows Server 2008. I am not sure why they didn’t bother testing on MOSS 2007 but I did and it works. Here are the step-by-step instructions on how to install the iFilter 9 and configure MOSS.

1. Download the Adobe iFilter 9 for 64-bit platforms. I found a few errors in the Adobe’s document that tells you how to configure the iFilter. Therefore, I suggest that you use the following instructions instead to avoid confusion.

2. Unzip the PDFiFilter64installer.zip file.

3. Logon with an administrator account and double-click the PDFFilter64installer.msi to start the installation.

4. After the installation is complete, add the location of the Adobe’s Reader to your path in the environment variables (Control Panel\System\Advanced\Environment Variables). For example, C:\Program Files\Adobe\Reader 8.0\Reader. It should point to the folder where the Adobe Reader executable file is located.

5. Now you need to verify that the PDF information has been added to the registry.

a. Start, Run, Regedit.
b. Go to \\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Applications\{site GUID}\Gather\Portal_Content\Extensions\ExtensionList. You need to do this for all your sites so go to each GUID that represents the side and make the change.
c. If you see a PDF extension then just skip to Step 6 . If PDF extension is missing then continue with the next step d.
d. Right-click on right-side Extension List pane and select New > String Value.
e. Add a name for the new Registry Key (e.g. “38”).
f. Double-click the new Registry Key and for  the Value data enter “pdf”.

Note: This step can also be accomplished in the SharePoint Server Search Administration page by adding ‘pdf’ to the list of File Types in Search Administration->File Types. This will automatically add an entry for ‘pdf’ filetype.

6. Verify that PDF has the correct settings in another registry location.

a. Go to \\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Setup\Filters\.pdf.
b. Verify that the following values are present. If they are not, you need to edit them.
- <REG_SZ> Default = <value not set>
- <REG_SZ> Extension = pdf
- <REG_DWORD> FileTypeBucket = 1
- <REG_SZ> MimeTypes = application/pdf

7. Next you need to verify that PDF has the correct settings in a couple of additional registry locations.

a. In the registry editor go to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Setup\ContentIndexCommon\Filters\Extension\.pdf.
b. Modify the entry and replace the value with the value listed below.
Name = Default
Type = <REG_MULTI_SZ>
Data = {E8978DA6-047F-4E3D-9C78-CDBE46041603}

a. In the registry editor go to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Search\Setup\ContentIndexCommon\Filters\Extension\.pdf.
b. Modify the entry and replace the value with the value listed below.
Name = Default
Type = <REG_MULTI_SZ>
Data = {E8978DA6-047F-4E3D-9C78-CDBE46041603}

Please note that although the two registry entries listed above look similar, they are not. One is in the Office Server section while the other is in Shared Tools\Web Server Extensions. The value of the data in both cases must be the same, i.e. {E8978DA6-047F-4E3D-9C78-CDBE46041603}.

8. Copy the PDF logo to the following location:
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\IMAGES.

9. Add an entry in DOCICON.XML for the pdf icon in the following location:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\XML. The following entry needs to be added to the  <ByExtension> section of the DOCICON.XML file.

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

If you are using a different file name for the GIF file, make sure that you replace “pdf.gif” with the name of your file.

10. Restart SharePoint search services. At the command prompt type:

net stop osearch
net start osearch

11. At the command prompt, restart IIS by typing:
IISRESET

If you are using a different file name for the GIF file, make sure that you replace “pdf.gif” with the name of your file.

12. At this point you should be able to see the PDF icon next to Adobe PDF files and the search results should display content from PDF documents along with a PDF icon.

Troubleshooting Tips

1. Make sure that you restart the search service (net stop osearch, net start osearch) and IISRESET when you are done making the changes.

2. Depending on the order of changes you made, you may have to start a full crawl to index all the files.

3. Look for any typos in the entry you made in the DOCICON.XML file. Also, make sure that the entry was added to the <ByExtension> section of the DOCICON.XML file. This is one of the most common reason for failures.

4. Make sure that the name of the icon file matches with the entry in the DOCICON.XML file. For example, if your icon file is called PDF16, make sure you use the same name (PDF16.GIF) in the DOCICON.XML file.

5. The icon that can be downloaded from Adobe’s Web site is 17×17 pixels. I read somewhere that the icon must be 8-bit and 16×16 pixels. I haven’t spent time to verify this (although I know others have used it on Windows Server 2003 32-bit and it worked for them) but when I couldn’t get mine to work I replaced my 17×17 icon with a 16×16 PDF icon. In my case there could be other reasons for the lack of icon display but if you can’t get your PDF icon to display you might want to try using this 16×16 pixel icon.

6. Make sure you make the changes in both places in step 7 of the instructions.

7. Whenever you make changes to the DOCICON.XML file, you need to run IISRESET at the command prompt. Refresh your browser to see the effect of the changes.

8. You might find the following links helpful:

http://support.microsoft.com/?id=555209

http://blogs.msdn.com/ifilter/archive/2007/03/29/indexing-pdf-documents-with-adobe-reader-v-8-and-moss-2007.aspx

Original publication: 1/18/2009

Last update: 5/2/2010


Copyright ©2009 Zubair Alexander. All rights reserved.

8 Responses to “Installing 64-bit PDF iFilter 9 on Windows Server 2008 for MOSS 2007”

  1. Roger Crawford Says:

    Thanks for your instructions. I installed Adobe’s 64 bit filter on Windows Server 2008, with MOSS 2007. I did NOT need to add the iFilter folder to the path. I DID use Adobe’s 17×17 icon and the icon shows up in the Central Administration, Search, File Types page. I definitely made the correction to DOCICON.XML per your instructions.

  2. Kevin Graves Says:

    Hi Zubair,
    Between yours and adobes I got the ifilter in OK.
    Icon shows up at17x17 no problem.
    But it still doesn’t crawl the contents of a pdf. I can access the metadata only. Is there a work around or is this is in its infancy?
    Thanks

  3. Kevin Graves Says:

    Got it to work, had to add the exact value in regedit {E8978DA6-047F-4E3D-9C78-CDBE46041603}
    which I had left at the default value. So maybe just clarify this is a must. The adobe pdf was vague on this.
    Otherwise thanks for the info.

  4. Zubair Alexander Says:

    Kevin,
    Thanks for the tip. Glad you got it working.

  5. Kristofor Says:

    Has anyone gotten this to work with MOSS 2007 SP2 + Windows 2008 R2??

    The PDF image shows in the results when I search for something like file name or other meta but the PDFs will not crawl.

    I get this error:
    Crawled (The filtering process could not process this item. This might be because you do not have the latest file filter for this type of item. Install the corresponding filter and retry your crawl. )

  6. Eric Jones Says:

    Great Stuff. Thanks for the excellent information!

  7. Miguel de Getafe Says:

    Greetings to all,

    We have a 64-bit server with iFilter9 PDF installed. It tracks PDF files fine unless they are digitally signed. We have a 32-bit server with iFilter6 PDF installed that tracks both signed and unsigned documents.

    Has anyone had this problem and was able to resolve it? I would appreciate any comments.

  8. Jane Says:

    We installed iFilter, posted PDF files, and the search is fine. But when we tried to search the PDF file that was posted before iFilter was installed, we can’t get any results. We did a “full crawl” after iFilter was installed, still no results. If I change the properties of PDF files that were posted earlier then I can get the search results. Since we had tons of PDF files posted before iFilter was installed, we can’t change every file property to make search work.

    If anyone had similar problems and have a solution for this, please share your knowledge, I really appreciate your help.

    Thanks.

Leave a Reply

CAPTCHA Image CAPTCHA Audio
Refresh Image

Comment spam protected by SpamBam

Spam Protection by WP-SpamFree Plugin

Contact E-mail | Terms of Use | Privacy Policy

Copyright ©2010 Zubair Alexander. All rights reserved.

Internal Links

Search Blog

Categories

Archives

September 2010
M T W T F S S
« Aug    
 12345
6789101112
13141516171819
20212223242526
27282930  

RSS Feeds

TechGalaxy Visitors

28 queries. 0.400 seconds