Skip to content Skip to sidebar Skip to footer

How To Have Pdf Viewer In Ruby

How can I embeded pdf viewer in ruby on rail? Now I tried but it doesn't work. I used firebug and see the error like

Solution 1:

If you are trying to display a PDF as an image, surrounded by HTML content... then a browser won't do that, and your problem is with the browser, not Ruby on Rails. You can link to a PDF, and display it whole, but you cannot embed it in another document.

You could simulate the effect (maybe, in some browsers) with an iFrame, but that is a HTML question, not a rails question... and you would possibly spend a lot of time making it work in all browsers.

Solution 2:

Post a Comment for "How To Have Pdf Viewer In Ruby"