I am using paperclip to upload docx doc and pdf files to my railsapp, is there any way I can view this uploaded files in the browser itself in pdf format, without downloading it ?
Asked
Active
Viewed 137 times
0
-
Have you looked at prawn2? – simonmorley Jul 10 '13 at 00:41
-
And have you tried anything out? – simonmorley Jul 10 '13 at 00:41
-
prawn2 wont serve my purpose here I want to open the file which i have uploaded on the app it could be doc or docx file – Hrishikesh Sardar Jul 10 '13 at 18:00
1 Answers
0
Try pdf.js. Firefox recently started using it as viewer for PDF files, but you can integrate it in your app. But you still need to 'download' it, that is, load into the browser.

Ermin Dedovic
- 907
- 4
- 6