Wednesday, October 28, 2009

PDF search in SharePoint

There are 2 subjects related to PDF documents.

  1. Out of the box, you won't see the PDF icon in document libraries as you see MS Office icons next to office documents.
  2. The search will look at the PDF document's properties but not in its content.

PDF Icon:

  • Download the small icon file from adobe. http://www.adobe.com/misc/linking.html#pdficon
  • Save the icon in the c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\IMAGES folder. You can rename it to match the standard naming convention.
  • Open (in notepad) the DOCICON.XML file located in the c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML folder.
  • In ByExtension section add the tag >Mapping Key="pdf" Value="icpdf.gif" OpenControl=""/>
    -Change the direction of the first > (just left to Mapping) to make the markup work right.
  • Save.
  • Reset IIS
  • You should see now all PDF documents with the correct icon.

I will post the instructions for PDF content search soon.

No comments:

Post a Comment

Enter your comment here