Splitting PDF to png
Posted
by Josh Crowder
on Stack Overflow
See other posts from Stack Overflow
or by Josh Crowder
Published on 2010-04-06T20:00:10Z
Indexed on
2010/04/06
21:23 UTC
Read the original article
Hit count: 265
ruby-on-rails
|rmagick
I'm using paperclip to upload a pdf. Once the file is uploaded I need to split every page into a png. This is the command I think I need to use
convert -size 640x300 fileName.pdf slide.png
Now if I run that command from terminal it works fine, but I need a way of getting each slides name so I can add it into a model.
What's the best way to achieve this?
© Stack Overflow or respective owner