none
webpart has to preview PDF from document library RRS feed

  • Question

  • We have to create a webpart as shown below,
    1.       By means we have to preview the PDF from Document library
    2.       And we have to edit the metadata for the document on the same webpart

    suggestions are appreciated

    • Moved by Mike Walsh FIN Friday, July 9, 2010 8:05 AM asking for suggestions - not necessarily customization suggestions (From:SharePoint - Design and Customization (pre-SharePoint 2010))
    Friday, July 9, 2010 7:18 AM

Answers

  • Moving to General as you are looking for suggestions that may not be customization.

     

    On 1. If you want to preview a PDF file in a Document Library you can add the document library to Outlook 2007 (the master remains in the SharePoint system) and then you can use the Outlook 2007 Preview function. This works with PDF files as well as the more usual office files.

     

    On 2. I am unsure what you mean. maybe the following helps.

     

    You can edit metadata connected to the PDF file *in the SharePoint system*  through changing the content of the columns/fields of the document library. 

     

    There is (unlike with office file types) no connection between the metadata in the SharePoint system for the pdf document and the metadata *of* the PDF document. In other words if you move the PDF file away from the SharePoint system, the metadata is lost (if you move an Office file away from the SP system, the metadata is not lost).


    2010 Books: SPF 2010; SPS 2010; SPD 2010; InfoPath 2010; Workflow etc.
    2007 Books: WSS 3.0; MOSS 2007; SPD 2007; InfoPath 2007; PerformancePoint; SSRS; Workflow
    Both lists also include books in French; German; Spanish with even more languages in the 2007 list.
    Friday, July 9, 2010 8:05 AM
  • First you can List all Files from document Library on a Treeview "If you have subfolder" or Dropdown, when you select the file
    you can use the following tag to preview the pdf Files,
    <object type="application/pdf" data="file1.pdf" width="500" height="650" ></object>
    Below you can add a box where the spfield metadata are associated with that document.

    If you need to update the field can use SPListitem.update() Method.
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.aspx


    André Lage Microsoft SharePoint, CRM and Sybase Consultant
    Blog:http://aaclage.blogspot.com
    Codeplex:http://spupload.codeplex.com/http://simplecamlsearch.codeplex.com/
    Friday, July 9, 2010 8:10 AM

All replies

  • Moving to General as you are looking for suggestions that may not be customization.

     

    On 1. If you want to preview a PDF file in a Document Library you can add the document library to Outlook 2007 (the master remains in the SharePoint system) and then you can use the Outlook 2007 Preview function. This works with PDF files as well as the more usual office files.

     

    On 2. I am unsure what you mean. maybe the following helps.

     

    You can edit metadata connected to the PDF file *in the SharePoint system*  through changing the content of the columns/fields of the document library. 

     

    There is (unlike with office file types) no connection between the metadata in the SharePoint system for the pdf document and the metadata *of* the PDF document. In other words if you move the PDF file away from the SharePoint system, the metadata is lost (if you move an Office file away from the SP system, the metadata is not lost).


    2010 Books: SPF 2010; SPS 2010; SPD 2010; InfoPath 2010; Workflow etc.
    2007 Books: WSS 3.0; MOSS 2007; SPD 2007; InfoPath 2007; PerformancePoint; SSRS; Workflow
    Both lists also include books in French; German; Spanish with even more languages in the 2007 list.
    Friday, July 9, 2010 8:05 AM
  • First you can List all Files from document Library on a Treeview "If you have subfolder" or Dropdown, when you select the file
    you can use the following tag to preview the pdf Files,
    <object type="application/pdf" data="file1.pdf" width="500" height="650" ></object>
    Below you can add a box where the spfield metadata are associated with that document.

    If you need to update the field can use SPListitem.update() Method.
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.aspx


    André Lage Microsoft SharePoint, CRM and Sybase Consultant
    Blog:http://aaclage.blogspot.com
    Codeplex:http://spupload.codeplex.com/http://simplecamlsearch.codeplex.com/
    Friday, July 9, 2010 8:10 AM