Jump to content

The ultimate community for Ruby on Rails developers.


how to control Google Document Viewer from downloading the pdf document?

rails 3.2 google document viewer rubyonrails ruby

  • Please log in to reply
1 reply to this topic

#1 siv rj

siv rj


  • Members
  • 2 posts

Posted 26 December 2013 - 08:41 AM

I am using rails 3.2.13 with ruby 1.9.3. I have embedded google document viewer in show page with iframe.

When i click on view document button to view the pdf file, chrome directly download the file instead of displaying with viewer.


Path to pdf file is correct. 


Any solution to control auto download of pdf file ?

#2 siv rj

siv rj


  • Members
  • 2 posts

Posted 31 December 2013 - 07:45 AM

is there anyone in this forum who knows the above problem of google document viewer

Also tagged with one or more of these keywords: rails 3.2, google document viewer, rubyonrails, ruby

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users