2

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...

IrishChieftain
  • 15,108
  • 7
  • 50
  • 91

2 Answers2

3

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.

Alex Angas
  • 59,219
  • 41
  • 137
  • 210
  • I had looked at this client solution but was not aware of the registry patch - this is definitely an option, thanks Alex. +1 vote and will be maker as answer if nobody can help with the handler :-) – IrishChieftain Jul 24 '09 at 13:54
  • Alex, I'm marking this as the answer. I have to accept the fact that I cannot use server side code to affect the nature of the initial client request. There may be a way to apply JavaScript to all the master pages being used? Thanks again Alex :-) – IrishChieftain Jul 25 '09 at 14:42
0

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.

Kirk Liemohn
  • 7,733
  • 9
  • 46
  • 57