• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Open and view word and pdf files in javascript

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Guys,

I need open and view a word or pdf files in javascript / HTML.

I do not want to open in a frame, but open the file direct in Word or PDF editor.

How can I to do this?

Thanks,

Fernando
 
Sheriff
Posts: 67269
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On other words, you want the PDF to open in Acrobat (or whatever other PDF editor is set up for the system) and for Word documents to open in Word?

If so, then you need to download the file using the correct content-disposition response header. Look up the values for response header content-disposition and pay special attention to attachments.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!