Answered Unable to edit a PDF document after migrating to SharePoint 2010

  • Tuesday, April 17, 2012 8:09 PM
     
     

    Hello all. I have a MOSS2007 SharePoint site with a couple of document libraries. Users with Adobe Acrobat installed can edit the PDF documents inline. We then migrated (database migration) to SharePoint 2010 Server and this functionality was lost: the "Edit document" format has been disabled.

    What can be the problem? Why the functionality was lost? Any clue will be greatly appreciated. 

    Thanks. 



    Fernando A. Gómez F.
    fermasmas.wordpress.com
    Galería de ejemplos

All Replies

  • Tuesday, April 17, 2012 8:34 PM
     
     

    You might want to try allowing the mime type for pdf's which can be done using powershell:

    $wa = get-spwebapplication -identity http://urlofwebapp

    $wa.AllowedInlineDownloadedMimeTypes.Add("application/pdf")

    $wa.update()

    I know it will allow your users to open the pdf file inline but I'm not sure if it will also let them edit it.


    -Chopps


    • Edited by JimmyChopps Tuesday, April 17, 2012 8:34 PM
    •  
  • Tuesday, April 17, 2012 8:56 PM
     
     

    Thanks Jimmy, I'll give it a shot.

    Cheers!



    Fernando A. Gómez F.
    fermasmas.wordpress.com
    Galería de ejemplos

  • Friday, April 20, 2012 4:09 PM
     
     

    Hey Fernando,

    Did you get a chance to run the powershell commands yet?  If so, did it work or are your users still having issues?


    -Chopps

  • Tuesday, April 24, 2012 3:33 PM
     
     

    Hi Jimmy. Sorry, I did try the commands but didn't work... Still have the problem...

    Thanks for the help anyway!



    Fernando A. Gómez F.
    fermasmas.wordpress.com
    Galería de ejemplos

  • Tuesday, April 24, 2012 4:37 PM
     
     Proposed Answer

    Have you gone into "SharePoint Central Administration" and modified the "Browser File Handling" of the given "Web Application" and set it to "Permissive"?

    "SharePoint Central Administration" --> "Application Management" --> "Manage Web Application" --> Select the Web Application --> Click on "General Settings" --> Scroll down to "Browser File Handling" --> Set it to "Permissive"


    Brian T. Shell

  • Wednesday, April 25, 2012 6:10 PM
     
     
    Did you setup the connected users with "Contribute" rights to the documents/pages you have created/posted?

    Randall

  • Thursday, May 03, 2012 9:57 PM
     
     

    Hi Brian, sorry for the delay, but didn't receive any notification to my mail. 

    Anyway, yes, I had already tried that with no luck... 

    Thanks for the help!



    Fernando A. Gómez F.
    fermasmas.wordpress.com
    Galería de ejemplos

  • Thursday, May 03, 2012 10:04 PM
     
     Answered Has Code

    As it turns, I found the solution. It was the Browse File Handling setting proposed by Brian, but rather than at Central Admin level, it should be done at list level by means of the following PowerShell script. 

    foreach ($list in $web.Lists) 
    {     
         if($list.title -match "Documents")     
        //return any lists with a title containing “Documents”    
        {         
              if($list.browserfilehandling -eq "Strict")  
              //if the profile is set to strict        
             {             
                   $list.browserfilehandling = "Permissive";            
                   $list.update();            
                   $site.url, $list.title, $list.browserfilehandling  
                   //print the list url/name for verification         
              }     
         }  
    }

    I got this script from this blog by Kim Nguyen, and there's a refined PowerShell script at  this entry (in Spanish).  Hope this helps someone else. 

    Cheers!



    Fernando A. Gómez F.
    fermasmas.wordpress.com
    Galería de ejemplos