How convert powerpoint presentation in serverside to png
I want to convert powerpoit presentation to png or jpg files. Can i do this in my serverside with ruby and ruby on rails. Or how can i do开发者_C百科 that like slideshare.
This is super-complicated (involves either reverse-engineering the various Microsoft PowerPoint formats, and re-rendering them as images, or else having a copy of PowerPoint on a server and writing code that will open files within it and screen capture them), and isn't something you're going to be able to do within Ruby on Rails.
Your best bet is to either 1) look into using SlideShare, or a similar service, via APIs and then embedding them within your side or 2) let people upload powerpoint files, and then if others want to view them, they have to download them again and re-open them within the application.
Or alternatively don't let people upload powerpoint files at all - instead get them to export their presentations as images or a PDF (which many browsers can view nowadays).
精彩评论