09 May 2007

SharePoint 2007 and Adobe PDF

[Updated 17/07 to correct folder string]

If you are deploying Microsoft Office SharePoint Server (MOSS) 2007, even if you are planning a vanilla deployment (i.e. no bespoke development, using only out-of-the-box features) there is one piece of bespoke configuration you will likely still want - the ability to index and search for Adobe PDF files.

There is a great post over on SharePoint blogs, written by S.S.Ahmed, detailing how to add PDF support to your MOSS box. However, Adobe have made some changes to their use of iFilters and there is now a shorter and easier way that doesn't require registry edits or resetting your web server.

The following process works on my demo build for Microsoft Office SharePoint Server 2007. Default names and file locations have been used - e.g. SharedServices1. I named the PDF icon as 'pdficon.gif'. If you have used different names and locations, substitute as necessary.

  1. Download and install Adobe Acrobat Reader 8 on the server (the reader now includes the iFilter by default, previously you had to install the iFilter separately)
  2. Add the PDF file type to your search index (note that this has to be completed for each index, i.e. each Shared Service)
    1. Open your Search Settings - SharePoint 3.0 Central Administration - SharedServices1 - Search Settings
    2. Select File Types
    3. Click Add File Type
    4. Enter pdf in the text box (labelled File extension) and click OK
  3. Download the PDF icon (select 'small 17 x 17') from http://www.adobe.com/misc/linking.html
    1. Give the icon a name (I use pdficon.gif)
    2. Save the icon in c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\IMAGES
  4. Edit the Docicon.xml file to include the PDF icon
    1. Navigate to c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML
    2. Open the DOCICON.XML file in Notepad (or an XML editor). You should see that the file has two main tags - ByProgID and ByExtension
    3. Within the ByExtension tag, add an entry for the PDF icon 'Mapping Key="pdf" Value="pdficon.gif" /' (replace the single quotes with angle brackets)
    4. Save and close the file
  5. Perform a full crawl of your content sources

That's all there is to it. Check that everything is working by doing a search for a file you know is a PDF document. The document should be listed in the results and should have the PDF icon displayed next to it.

Again, big thanks to S.S.Ahmed for writing the original 'how to' that this post is based on.

This post will be filed in the library under SharePoint

[Update: Apr 08] Adobe now have a 64-bit iFilter available. See http://labs.adobe.com/wiki/index.php/PDF_iFilter_8_-_64-bit_Support

[Update: May 08] Don't know if it is related to SP1 or Search Server 2008 specific, but had to perform an 'iisreset' to get the PDF icon to appear... If you do this on a live system, don't forget to warn people that SharePoint will be offline temporarily

Technorati tags: SharePoint, SharePoint 2007, MOSS 2007

6 Comments:

Blogger Mark said...

An alternative is the Foxit PDF IFilters - unlike Adobe, they have a 64bit version too.

http://markharrison.co.uk/blog/2007/05/foxit-pdf-ifilter-x64-and-32-bit.htm

12 May, 2007  
Anonymous Anonymous said...

I don't know if this is a typo or an eccentricity with my MOSS server, but I couldn't get the pdf icon to work when I put the .gif file in the folder you listed. I had to put it in c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\IMAGES (the difference is the TEMPLATE part).

16 July, 2007  
Blogger Joining Dots said...

You were right first time - it is a typo. Weirdly, I'd managed to get the full string in for the XML folder.

Many thanks for letting me know - the post has been updated.

17 July, 2007  
Blogger SuperSantos said...

I tried to make what you describe here, but the filtering is not working... the only difference with your description is that I used MOSS 2007 with SP1. Do you know if there are bugfixes to use this feature?
Best regards

18 February, 2008  
Anonymous Anonymous said...

If you see internet explorer icon [e] instead of the pdf icon...

It is because we should perform a Full Update on the Search content indexes.

-Open a Command Prompt on the Indexing Server.

-net stop osearch.
-net start osearch.

-Go to Central Administration, then to the Shared Services Administration Web of the current SSP, go to Search Settings and start a full crawl of all locations containing PDF files.

That should refresh it and the pdficon.gif file will be visible as it should.

[Georgia.]

17 March, 2008  
Anonymous http://mattbeaver2002.spaces.live.com/blog/cns!801AB4157DF28FDA!14442.entry said...

This blog will show you how to use PDF iFilters for x32 & x64 servers and also how to get your document librarys to display a PDF icon.

http://mattbeaver2002.spaces.live.com/blog/cns!801AB4157DF28FDA!14442.entry

21 April, 2008  

Post a Comment

Links to this post:

Create a Link

<< Home