PDF document viewer in rails

Hai guys i would like to show my pdf document into my app like scribd site show the document in their site i need a help how to implement the viewer into my app give me some reference for implement the viewer

Hi sijo thank you it help me some way but what i really need is i would like to show the content in the flash player like this url shows http://www.scribd.com/doc/18244537/The-World-According-to-Twitter

Thanks & regards Mahesh

http://www.google.com/search?q=pdf+flash+viewer

Best regards

Peter De Berdt

Marnen Laibow-Koser wrote:

Don't do this. Scribd's PDF viewer is an impressive piece of Flash, but it's underpowered compared to real PDF viewers like the Adobe Reader plugin. Also, iPhone and Palm users can display PDF files but not Flash, and I think screen readers would have an easier time with PDF files.

Just serve up the straight PDF file and don't worry about Flash.

+1

Or, at least provide both options to visitors. As a Safari user I don't even need a plugin to have a great PDF viewing experience (even surpasses that of the Adobe Reader plugin IMHO). Being forced to view PDF inside Flash would just serve to irritate me to the point of never using a site again. Or at least not without a lot of grumbling and cursing of the site developer.

Thank you for your idea guys I got the solution to show the file in iframe tag is that good way to show the file in iframe or any better solution in rails to show the pdf content.

mahesh s wrote:

Thank you for your idea guys        I got the solution to show the file in iframe tag is that good way to show the file in iframe or any better solution in rails to show the pdf content.

It doesn't have to be in an iframe -- you can serve it just like an HTML file. Rails doesn't come into the issue.

Best,

Check http://googlesystem.blogspot.com/2009/09/embeddable-google-document-viewer.html

It's really simple, and it isn't Flash, just add into the view, "<iframe src="http://docs.google.com/gview?url=#\{YOUR\_PDF\_URL\}&amp;embedded=true&quot; style="width:600px; height:500px;" frameborder="0"></iframe>"

Fernando

Marnen Laibow-Koser wrote: