I got a request from Brett Anderson regarding a solution for opening PDF files in a maximized dialog window in SharePoint 2010. This code will most likely work in SharePoint 2013, but it has not been tested.
Please note that “Browser file handling” must be set to “Permissive” under “Web application general settings” in SharePoint Central Administration.
This is the code we ended up with after some back and forth:
6 thoughts on “Open PDF files in a maximized dialog”
Thanks Alexander Bautz and good script to open PDf in the SP dialog. Great work !!
I always like taking your code and making it work in other uses. I added this to a web part page, where I had hyperlinks, some were PDF. Initially I could not get it to work, so I thought. It was actually appending the div at the end of the document. once I realized this I just set a position on the div and there it was. now I have no way of closing the dialog. How can I do this? do I need to add a button? how do I close the dialog?
No worries. I am in MOSS I think I figured it out
Hi. This service here allows you to easily and effectively edit, upload or download fillable PDF forms.
You can fill out PDF form, save it, fax it, and email it.
Thank You !