[Update: 17th May 2011] See end of post for link to a Powershell method for doing this.
The following post is an update from the original ‘SharePoint 2007 and Adobe PDF‘ post written in 2007. These notes are based on SharePoint 2010 Beta 2 (made publicly available in November 2009). Once the product has officially launched on 12 May 2010, an update will be posted if any changes are made to the process. The process is very similar to SharePoint 2007, with minor changes to folder location (14 instead of 12) and a slightly different administration user interface in the browser.
SharePoint Server 2010, like its predecessors, includes indexing and search capabilities. But what doesn’t come out of the box is the ability to index and search for PDF documents. PDF is a format owned by Adobe, not Microsoft. If you want to be able to find Adobe PDF documents, or have the PDF icon appear when viewing PDF files in a SharePoint document library (see image above), you will need to set it up for yourself. This post describes how to.
- Download and install Adobe’s 64-bit PDF iFilter*1 – http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025
- Download the Adobe PDF icon (select Small 17 x 17) – http://www.adobe.com/misc/linking.html
- Give the icon a name or accept the default: ‘pdficon_small.gif’
- Save the icon (or copy to) C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES
- Edit the DOCICON.XML file to include the PDF icon
- In Windows Explorer, navigate to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML
- Edit the DOCICON.XML file (I open it in NotePad, you can also use the built-in XML Editor)
- Ignore the section <ByProgID> and scroll down to the <ByExtension> section of the file
- Within the <ByExtension> section, insert <Mapping Key=”pdf” Value=”pdficon_small.gif” /> attribute. The easiest way is to copy an existing one – I usually just copy the line that starts <Mapping Key=”png”… and replace the parameters for Key and Value (see image below)
- Save and close the file

- Add PDF to the list of supported file types within SharePoint
- In the web browser, open SharePoint Central Administration
- Under Application Management, click on Manage service applications
- Scroll down the list of service apps and click on Search Service Application
- Within the Search Administration dashboard, in the sidebar on the left, click File Types
- Click ‘New File Type’ and enter PDF in the File extension box. Click OK
- Scroll down the list of file types and check that PDF is now listed and displaying the pdf icon.
- Close the web browser
- Stop and restart Internet Information Server (IIS)*2 Note: this will temporarily take SharePoint offline. Open a command line (Start – Run – enter ‘cmd’) and type ‘iisreset’
- Perform a full crawl of your index. Note: An incremental crawl is not sufficient when you have added a new file type. SharePoint only indexes file names with the extensions listed under File Types and ignores everything else. When you add a new file type, you then have to perform a full crawl to forcibly identify all files with the now relevant file extension.
That’s it. If you now perform a search, PDF files should be displayed in results where they match the search query, along with the PDF icon on display in results. The icon should also be visible in any document libraries that contain PDF files.
* Additional Notes:
- At time of writing (March 2010), Adobe has published PDF iFilter 9 for 64-bit applications, tested on SharePoint 2007 but not yet listed as tested on SharePoint 2010. So far, it is working fine on my builds of SharePoint 2010 (Beta versions)
- When setting this up, I initially just restarted the search service rather than IIS but found myself locked out of SharePoint. Resetting IIS fixed it. I don’t know for certain if you also need to restart the search service. Will test on the next build and update here.
- As with SharePoint 2007, there are alternative PDF ifilters. The most well known is Foxit Pro – http://www.foxitsoftware.com/. Rumoured to perform indexing faster than using Adobe’s iFilter. I can’t comment, I haven’t tested it. Given PDFs don’t change (they are usually PDFs specifically to not be edited) they are only indexed when first uploaded or when you perform a full crawl. Most organisations should primarily be performing incremental crawls – updating the index with content that has been added or changed rather than re-indexing everything
- An absolute cheat for getting round the need to do registry edits is to install Adobe Reader on your server…
- There’s a Powershell script for doing all of this, see Johan Skoglund’s blog – Use Powershell to configure PDF search in SharePoint 2010. Haven’t tried it yet, will give it a go on the next demo build and it’s been confirmed int he comments
- Another suggestion from the comments – you don’t have to use the default icons (but do make sure whatever ones you do use are licensed or free to use). Thanks to Jon for suggesting http://www.iconmaker.com where you can search for icons free to use commercially. Nothing stopping you from using your own icons for all the different file types…




[...] This post was mentioned on Twitter by Joining Dots, Edwin Bastings. Edwin Bastings said: SharePoint 2010 en Adobe PDF http://bit.ly/9G4c8u Hoe PDF files te indexeren dmv iFilter in #SP2010 [...]
When uploading Microsoft document to a document library existing document properties are extracted to corresponding library columns. Is there a way to extract PDF properties to corresponding library columns?
Unfortunately not. The standard properties are indexed by SharePoint, such as author, title, date modified etc. so they will be visible in the search results (including the extracted metadata for refining search results) but they are not automatically promoted into SharePoint columns within the libraries.
Hi All,
I have published an article at http://www.mossgurus.com/adnan/default.aspx explaining How to Install and configure PDF iFilter (64 bit) for SharePoint Server 2010 or Search Server 2010 Express with screen shots of each important steps.
I do hope that you will find this article useful. Please leave your comments.
Thanks
Adnan Ahmed
Senior MS Solutions Consultant
Owner: http://www.mossgurus.com
Do you need to install the PDF iFilter on the database server or the sharepoint application server? That was not noted in the instructions…. Thanks.
Do I have to install the filter on every front server in my farm or only the server hosting Central Admin and or search service?
Hi Dustin and Wendy
The iFilter needs to be installed on the indexing/search servers. You shouldn’t need to install on the database server or the front-ends.
Cheers and best regards
Sharon.
Don’t forget to ensure that the right registry key is set as per Adnan’s instructions, as Adobe’s iFilter doesn’t know to register itself against the SP2010 search service.
Hi Craig, I’ve never needed to set that registry key to get PDF indexing to work. It’s included on Adobe’s own instructions but they don’t configure within the UI which I have assumed is the alternative. Useful to know for reference if someone has problems getting indexing to work as maybe it’s the cause in some set-ups.
hi,
in my production moss 2007 site, pdf documents are not overwriting, just showing pdf documents with out the update
is that an issue with moss2007
In my case until I’ve made suggested registry changes I was getting errors in the crawl log (The filtering process could not load the item) and PDF files content was not searchable.
Hi Thomas
Not sure I follow your comment. PDF docs are normally read-only and not updated so you wouldn’t be able to overwrite them. If you are running full Adobe Acrobat and making changes to the documents, you’d need to re-index (incremental crawl) to pick up the changes and see the changes in search results although the changes would be visible if you navigate direct to the docs.
Hi Leonid
Thanks for the feedback, seems the registry changes are required in some instances. Out of curiosity – what is your environment. Is it a single server or multi-server farm?
Am also thinking if you’ve installed the Reader that probably does the registry changes for you, but if you just install the iFilter you’ll need to do the extra config…
One note on adding the PDF icon to the DOCICON.XML. if you do not want the “read only / edit” dialog box to popup everytime for PDF files you need to add the attribute opencontrol=””
IS there a way to display a PDF file within a webpart or seomthing similar? I don’t want to allow people to download the actual PDF file itself, but want to display it’s content.
Hi Robert – curious, never heard of that one before.
Dave – view without download is always a tricky one in that there is always the work around if the file is cached in memory for viewing (and the good old analogue hack of screen scraping… Is there a reason why you don’t want the file to be downloaded? (Wondering if there’s an alternative solution that may work better)…
@Sharon – I am seconding Dave’s request. We want to be able to open the PDF in a webpage, similar to how PDF open on many non-SharePoint sites. If there anyway that you know of doing this?
The adobe installer doesn’t add these registry changes automatically. I have a single server/farm SP 2010 environment.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\14.0\Search\Setup\Filters\.pdf]
“Extension”=”pdf”
“FileTypeBucket”=dword:00000001
“MimeTypes”=”application/pdf”
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\14.0\Search\Setup\ContentIndexCommon\Filters\Extension\.pdf]
@=”{E8978DA6-047F-4E3D-9C78-CDBE46041603}”
Hi Aaron and Dave
I’ve create a blog post walking through a simple method to embed PDFs inside a web part. Hope that’s what you were after http://www.sharepointsharon.com/2010/08/embedding-pdfs/
Dave – technically it still doesn’t stop downloads because a) the file is downloaded into cache for viewing and b) the standard Adobe control includes the option to print and save locally. It’s a client-side control. The only way to prevent is to use a server control stream through Adobe Flash Player.
@Sharon – thanks for the how-to. What I am getting after is the ability to click on a PDF file in a document library and have that PDF displayed in the same browser window. The default behavior is to prompt you to save the file.
I found the fix – change “Browser File Handling” to “Permissive”.
[...] todavía no habéis instalado el iFilter x64 de Adobe para Sharepoint 2010 os dejo este link con muy buenas instrucciones. Posteado por Jesús López Martín en 01/10/20100 [...]
A few remarks for implementing this for FAST search results:
1. There is NO NEED to install the Adobe PDF iFilter, since we’re not using SP indexing (we use FAST back-end as an indexing machine).
2. There is NO NEED to reindex content, from the very same reason as written above.
2. In a multi-server (farm env with CA & Front-Ends separated) the procedure of icon coping & xml editing should be taken care of on each & every machine.
Dima, many thanks for the additional info for FAST-specific config and useful reminder for set-up in a farm environment.
Hi
Is the PDF iFilter supposed to also show thumbnails in the results set as mine doesnt?
I can search and the results do show text from the pdf document just no thumbnail.
is it possible to get the thumbnail for pdfs?
Mike
Hi Mike
No, not if you are only using pure SharePoint search. Thumbnails/previews are a feature within the FAST search engine, which is licensed as an add-on to SharePoint. And as far as I know, it only supports Office previews out of the box, not PDF. I would hope that you can configure Adobe’s PDF thumbnail preview capability for FAST much in the same way you configure PDF indexing for SharePoint. But haven’t tried yet.
Best regards
Sharon.
Thank you for an excellent and detailed How-To. It works for me in Sharepoint 2010 Server Enterprise.
However, I notice that when searching for PDF docs, the search results return the document “Title” instead of the Windows file name. Is there any way to change this to display the Windows File Name instead?
Thank you
Hi Riaz
The default layout for search results is:
- Title
- Summary
- Properties
- URL/filename
You can change the layout by editing the Search Core Results web part on the page. It will require editing the XSL file (under Display Properties in the web part task pane).
I would caution against switching Title and Filename. The latter is rarely more readable because it cannot contain special characters, spaces will have been replaced with %20s and for common documents like meeting minutes, many may have very similar filenames if not identical. For documents without a title, the filename is automatically used instead when displaying search results.
Hope that helps
Sharon.
Found your post through the magic of Google Chrome autocomplete.
Thank you for saving me a bunch of headaches and hair pulling.
On step 4.6 I needed to do a iisreset /noforce before the icon would display, but other than that, it worked fine in my test environment.
Pdf icon not working in Sharepoint 2010 Server…
Can you help me?
Pdf icon still not displayed in Sharepoint Server 2010.
Can you help me?
Hi Sean
Thanks for the feedback, always appreciated
And cheers for the update. I’ve set it up so many times now I tend to run through all the steps, iisreset, then check everything is working in one go
I suspect I really ought to move step 5 in front of 4. I think you can get away with it in the original order if you’ve cheated and installed Adobe Reader on the server as well. (I tend to do that on my demo builds.)
Hey Developer
The most common cause for an icon to not be displayed is a typo in the docicon.xml file. It’s caught me out a few times. Make sure you have the filename exactly right (step 3.4) and do check that you have definitely copied the icon file to the correct library (step 2.2). As long as you’ve followed all the steps, perform an IISRESET at the command line to restart SharePoint and all should be OK. Finally, if you have a farm environment, steps 1 to 5 need to be repeated on every server hosting an index partition (SharePoint 2010 now supports multiple indexing servers) and steps 2 – 5 need to be repeated on every search query server (receiving a copy of one or more index partitions). And when all have been updated, check the icon is displaying under file types, then perform step 6 on all indexing servers. After all that, PDF files should have the pdf icon displayed next to them in libraries and search results.
Hope that helps.
[...] The Configure PDF iFilter for SharePoint 2010 process is documented in many places including:# http://www.sharepointsharon.com/2010/03/sharepoint-2010-and-adobe-pdf/# http://www.codeproject.com/KB/sharepoint/PDFiFIlterSharePoint2010.aspx# [...]
[...] yet annoying and often forgotten SharePoint configuration step. There are nice articles (link, link) to help you configure it but when you do it manually chances are you will miss [...]
Sorry for the very late comment, but we’re heading down the this path for some of our documents. If somebody searches for something like: “Orange peels” and we have 20 instances of “Orange Peels” in a single document, do all 20 instances appear in the search results? How much surrounding text gets returned?
Hi Sharon:
Very good and informative article. Very informative. Do you think PdfForms at http://www.pdfsharepoint.com qualify for SharePoint 2010 and Pdf integration. I just consider ability to use Pdf forms (not only documents) is essential for full integration.
I know that Adobe Acrobat X allows some kind of integration with SharePoint. What is your opinion?
Thanks,
Jack D.
Windows 7 does not include some of the folders your path lists in parent step 2 or 3. There is no TEMPLATE folder, XML folder, or IMAGES folder.
Also, I performed a search on my laptop’s hard drive, and there is no DOCICON.XML file. It does not exist.
I would appreciate any suggestions. Thanks!
Hi WB, apologies for the late response
If a single document has 30 instances of Orange Peel and it’s the only document to have such a high number, the only effect is it is likely to come top of the relevance ranking although it does depend on a number of factors, such as other words in the search query, URL depth of the result compared to other results, metadata matches etc.
But each document or page is only listed once in search results. If there are lots of duplicates, they’ll be removed from the results and you will see a ‘View duplicates’ link under one result. Click on it and you can see all identical matches.
The search results will show a short summary of each result listed. The summary is dynamically generated based on the search query words (and will show hit highlighting). You can specify how much of a summary you want returned.
Hope that helps.
Best regards
Sharon.
Hi Jack
Thanks for the kind comments.I haven’t used PDFForms but it looks like they are doing integration similar to or to rival InfoPath which would be useful if you only have SharePoint Standard Edition – InfoPath Forms Service is part of the Enterprise edition. But you should compare cost and features first. I’d guess PDFForms does a better job of emailing/editing forms internally and externally. InfoPath can do browser-based but requires you to be on SharePoint to view and edit them.
Assuming the forms are stored as PDFs, then they should get indexed with the PDF filter just like normal PDF docs.
Hope that helps
All the best
Sharon.
Hi Tim
Haven’t got SharePoint 2010 running on Windows 7 so can’t check. If I get a moment, I’ll through up a virtual image and have a look, but won’t happen for a couple of weeks as I’m just off on holiday
I’ll post results back here.
Wouldn’t be surprised if you can’t do it on Windows 7 as it’s not supported for production but don’t know why the folders wouldn’t be there. It’s a pretty basic (i.e. old) feature for SharePoint by now. Have just had a look at a Windows 7 machine (it isn’t running SharePoint) and I wonder if it’s legacy desktop OS code that causes the problem. Itt includes an Office14 folder under the Web Server Extensions for the old bug-ridden product FrontPage Server Extensions. A product guaranteed to give SharePoint heart failure if asked to share the same space
[...] http://www.sharepointsharon.com/2010/03/sharepoint-2010-and-adobe-pdf/ http://www.sharepointgeoff.com/scblogspace/Lists/Posts/Post.aspx?ID=101 [...]
Sharepoint 2010 question” Does anyone know of a way I can either merge, embed, view, do a workflow, or whatever to accomplish the following:
I have five documents saved in a 2010 Sharepoint library that get upated regularly and they are in PDF format. Some of those documents are in parts of other PDF documents. How can I “update” them all without having to go into each pdf document. I have Adobe pro so I’m able to insert pages, etc.
Thanks!
proboxin@aol.com
Hi ProBox
I’m not much of an Adobe Pro person but can you not maintain the multiple docs from within Adobe? I’m actually setting something up relating to Pro in the next month including maintaining image references. If I come across this scenario, will blog the outcomes.
[...] SharePoint 2010 and Adobe PDF. [...]
[...] http://www.sharepointsharon.com/2010/03/sharepoint-2010-and-adobe-pdf/ http://nickgrattan.wordpress.com/2010/06/14/adobe-pdf-ifilter-indexing-with-sharepoint 2010/ [...]
Hi
Searching within PDF’s has stopped, I can still search for the names of the documents. Any idea what I can do to get this working again?
Hi Vasu. Have any updates been applied recently that might have affected the Adobe PDF filter?
The first test would be to stop and restart the search service. It sounds like it was working fine originally. Perhaps try reinstalling the Adobe PDF iFilter. Make sure you use the 64-bit version.
Hope that helps.
Great article thanks! All my questions answered on one handy page.
I also had success using the Powershell script on a single server environment (modified to get the files from a local drive instead of downloading from net)
Hi S
I have not done any recent updates.
Initially when the iFilter was installed, one step had been left out, making a change in the registry. The search worked even with this step missing.
I have included this step, re-booted the server & the search is now working. I suspect all it needed was a re-boot.
Thank for your help, you will be hearing from me again…
:>
Hello Sharon,
Well done on the excellent post!
Is there a way to preview the PDF while in SP2010?
I want to be able to see on one side the document library or document properties and on the other side of my screen a preview of my document.
So that I can update the document properties/metadata, based on the content of the PDF that I am previewing.
Thank you,
Alkis
Hi Alkis
Thanks for the kind feedback.
I had a client who had the same requirements and for 2007 the only solution was to custom code in a preview pane as part of the document properties edit form. I don’t think anything has changed in 2010.
There are tools available to do previews without downloading, but I don’t think they also let you edit SharePoint library properties whilst previewing.
Sorry I can’t be of more help.
All the best
Sharon.