11155
(-- --)
January 22, 2012, 6:20am
1
Hi bro/sis,
Do you know the plugin to show the big icons of PDF (has attached as
above) in the webpage?
How to write a code?
I am using paperclip and rails 3.1.x.
Thank you bro/sis!!
Best regards,
Joachim
Attachments:
http://www.ruby-forum.com/attachment/6927/PDF_thumbnail.jpg
Hi Joachim,
Hope you doing Good.
Well, Myself also cross-over a same situation like this.
You can use the jquery to get that PDF symbols in site. Hope it will
resolve your Problem.
If you really want to know more about ruby on rails then click the
following.
Ruby On Rails – Why It’s A Technology To Really Consider? | Innoppl
Have a nice day.
Regards
Daniel Jackson
11155
(-- --)
January 23, 2012, 2:50pm
3
Joachim Cheng wrote in post #1042003:
Hi bro/sis,
Do you know the plugin to show the big icons of PDF (has attached as
above) in the webpage?
How to write a code?
I am using paperclip and rails 3.1.x.
Thank you bro/sis!!
Best regards,
Joachim
Someone help me??
If I’m no wrong… I’ve seen the same in the ActiveAdmin Demo … It may help you
Javier
To do that the only thing you need to do is add this line on your model
has_attached_file :pdf, :styles { :thumb => “100×200#” }
there is a dependency to make it works. You need to have in your environment machine ghostscript installed.
I hope you`ll find the solution.
those are some blog posts about this need.
http://stackoverflow.com/questions/3496233/how-to-thumbnail-a-multi-page-pdf-with-paperclip
pt-br
http://blog.shadowmaru.org/2009/3/6/dica-rapida-thumbnail-de-pdf-no-paperclip
you can use google translator if you need!
please let us know if you fix this problem
thx