1

I would like to create a list (document library) with pdf documents and when i choose one document it opens up in webpart on same page (like a preview option), or if that's not possible to open up in browser instead of launching Adobe Acrobat or showing 'Save As' button.

Is that possible ?

2 Answers 2

1

This should be doable using a DVWP and some code underneath to infer the filepath. You can use this code to embed .pdf's into the browser:

    <object data="myfile.pdf" type="application/pdf" width="100%" height="100%">

  <p>It appears you don't have a PDF plugin for this browser.
  No biggie... you can <a href="myfile.pdf">click here to
  download the PDF file.</a></p>

</object>

If you need help, let me know.

0

There are a few ways of doing this. You can build a webpart that list the content of your list and got a previewer built-in.

You can also use jquery and track your events in a specific list and go from there, a bit tricky but doable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.