Sunday, September 20, 2009

Adding the pdf icon to WSS or MOSS implementation.

These steps will add the pdf icon to any pdf document in document libraries.

Steps:

  1. Save the following icon as pdficon.gif or download an icon from: http://www.adobe.com/misc/linking.html

    2- Make sure that you download the 17 x 17 icon.

    1. Add the PDF icon. “pdficon.gif to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Images
    2. open with an xml editor Docicon.xml file located in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\xml
    3. Within the tag add the following Mapping tag


    Make sure it is in alphabetical order and the value equals the name of the icon file.

    4. Save the Docicon.xml file
    5. Restart IIS.
    6. Check a document library you should now see a pdf icon next to all pdf documents.


Configuring WSS search to index pdf files, (installing and configuring pdf ifilters

Configuring WSS search to index pdf files, (installing and configuring pdf ifilters Pdf documents are used in many organizations as much as office documents, yet MOSS or WSS 3.0 does not support searching for these documents. In order to enable sharepoint search service to index and include pdf documents in the search results, pdf ifilters must be installed. The following steps explains how to configure the ifilters for WSS 3.0. Please note that this is for the 64 bit OS but the same steps will apply for 32 bit OScas well, the only difference is that you will need to download the correct ifilter in step 2 1. Follow the instructions to add the pdf icon to the WSS front servers. 2. Download and then install the Adobe PDF IFilter 9 for 64 bit platform from the following Adobe Web site: http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025

For 32 bit:
http://www.adobe.com/support/downloads/detail.jsp?ftpID=2611

(Please note that the pdf ifilter is included in iFilter functionality is now bundled within the Acrobat and Reader products so if you installed any version of Acrobat starting version 7.0.5 then the ifilter is already installed)
3. Extract the contents of "PDFiFilter64installer.zip" to your local drive.
4. Double click "PDFFilter64installer.msi" to launch the installer.
5. Follow the instructions in the installer wizard to complete the installation
6. Once you’ve installed the IFilter on your WSS 3.0 server, and then follow the instructions below:
The following is a copy of the Microsoft KB Article 927675 that details the instructions needed to edit the registry settings.
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\\Gather\Search\Extensions\ExtensionList\38
To do this, follow these steps:
a. Click Start, click Run, type regedit, and then click OK.
b. 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
c. On the Edit menu, point to New, and then click String Value.
d. Type 38, and then press ENTER.
e. Right-click the registry entry that you created, and then click Modify.
f. In the Value data box, type pdf, and then click OK.
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.
o 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}
o 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
Upload the PDF documents to the Windows SharePoint Services 3.0 Web site.
Stop and then start the Windows SharePoint Services Search service. To do this, follow these steps:
. Click Start, click Run, type cmd, and then click OK.
a. Stop the Windows SharePoint Services Search service. To do this, type net stop spsearch at the command prompt, and then press ENTER.
b. Start the Windows SharePoint Services Search service. To do this, type net start spsearch at the command prompt, and then press ENTER.
c. Type exit to exit the command prompt.
Final Note:
You will need to restart a full crawl if you added any PDF documents to the site before you installed the Adobe PDF IFilter on the server. To do that use STSAdm, use the following command

Stsadm -o spsearch -action fullcrawlstart,

This will allow the Windows SharePoint Services Search service crawls the existing PDF documents again.