- 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.
After having read all sorts of articles online on how to get Adobe Acrobat and SharePoint to work together, I think I have finally found the right combination of actions.
The first step that most people are familiar with is the addition of a mapping in the DOCICON.xml file. For those who aren’t the steps are:
1. Edit DOCICON.XML
a. Path: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\XML\DOCICON.XML
2. Add an entry to support PDF files.
a. <Mapping Key="pdf" Value="icpdf.gif" EditText="Adobe Acrobat" OpenControl="SharePoint.OpenDocuments" />
Please note the second part of the entry EditText="Adobe Acrobat" OpenControl="SharePoint.OpenDocuments" which is critical to achieving the Edit in functionality
This step will provide a nice link that allows users to edit documents in Adobe Acrobat.
Aucun commentaire:
Enregistrer un commentaire