html - How to have pdf viewer in ruby -


I can embeded Ruby PDF Viewer on rail

Now I try to & lt ; Embed src = "MyPdfDocument.pdf" width = "500" height = "375" & gt; but it does not work I used firebug and see this error

[Exception ... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIStreamListener.onStopRequest] "nsresult:" 0x80004005 (NS_ERROR_FAILURE) "location:" JS frame :: file: ///home/bengasi/.mozilla/firefox/cmb1mbzu.default/extensions/firebug@software.joehewitt.com/components/firebug-channel -listener.js :: anonymous :: line 167 "data: no] [break on this error] this.listener.onStopRequest (request, requestContext, statusCode); \ N

firebug -... stener.js (line 167)

If you are trying to display a PDF as an image, then the HTML is surrounded by content ... so one can not win the browser, and your problem is with the browser, Ruby But not the railways. You can link to an PDF with an iFrame (may be in some browsers), and display it whole, but you can not embed it in any other document.

The effect you can simulate, but that is not an HTML question is, rail question ... and may you spend a lot of time to work in all browsers.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -