Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert ppt to images in Ruby?

I'm using Ruby for displaying the contents of powerpoint files in a webpage. I've found solutions using the win32ole but I'm in the linux environment and it doesn't work. I think the application could trigger a openoffice command for conversion.

like image 686
Cassio Melo Avatar asked Dec 23 '22 00:12

Cassio Melo


1 Answers

I recommend using Docsplit.

Install the gem, and then you can do something like:

Docsplit.extract_images(filename, :size => '920x', :format => [:png])
like image 51
Shlomi Zadok Avatar answered Dec 28 '22 06:12

Shlomi Zadok