SharePoint – Open Document Library PDF in New Window

I want PDF files in MOSS 2007 Publishing site document libraries to open in a new window. Is it possible to achieve this by creating a custom HttpHandler? I don’t want to mess with a site definition for something as basic as this…

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

I also have this requirement and discovered that if you have Adobe Reader installed as part of your SOE and are using this to open your PDFs then the problem is not on the server but the client.

Adobe Reader has an option called “Disable display of PDF in browser” that you need to change on your clients.

If you want to correct this then you will need to roll out this registry patch or MST change to your clients. The downside is that this will affect how PDFs are opened from all web sites, not just your SharePoint server. I don’t think this can be changed per site, you could ask at Server Fault.

Method 2

I have never tried a HttpHandler for that purpose, but it seems plausible.

If your document library only contains PDFs you can do some nifty things with the Data Form web part where you can show the PDF on the same page (using IFrames) as they click through items in the library.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x