### Installing Bundler for RubyPowerpoint Development Source: https://github.com/pythonicrubyist/ruby_powerpoint/blob/master/README.rdoc This command installs the Bundler gem, which is used to manage Ruby gem dependencies for development. It's a prerequisite for setting up the development environment of the `ruby_powerpoint` project. ```Shell gem install bundler ``` -------------------------------- ### Installing RubyPowerpoint Gem via Command Line Source: https://github.com/pythonicrubyist/ruby_powerpoint/blob/master/README.rdoc This command installs the RubyPowerpoint gem globally on your system using the `gem` package manager. It makes the gem's functionalities available for command-line usage. ```Shell gem install ruby_powerpoint ``` -------------------------------- ### Installing Development Dependencies with Bundler Source: https://github.com/pythonicrubyist/ruby_powerpoint/blob/master/README.rdoc This command uses Bundler to install all development dependencies specified in the `Gemfile.lock` for the `ruby_powerpoint` project. It ensures all necessary gems are available for running tests and contributing. ```Shell bundle install ``` -------------------------------- ### Adding RubyPowerpoint to a Rails Gemfile Source: https://github.com/pythonicrubyist/ruby_powerpoint/blob/master/README.rdoc This line adds the RubyPowerpoint gem as a dependency to your Rails application's `Gemfile`. After adding, run `bundle install` to integrate it into your project. ```Ruby gem "ruby_powerpoint" ``` -------------------------------- ### Running RubyPowerpoint Test Suite with Rake Source: https://github.com/pythonicrubyist/ruby_powerpoint/blob/master/README.rdoc This command executes the Rake tasks defined for the `ruby_powerpoint` project, specifically running the test suite. It verifies that all existing unit tests pass after making code changes. ```Shell rake ``` -------------------------------- ### Parsing PowerPoint Files and Extracting Content with RubyPowerpoint Source: https://github.com/pythonicrubyist/ruby_powerpoint/blob/master/README.rdoc This Ruby code demonstrates how to parse a `.pptx` file using `ruby_powerpoint`. It initializes a `Presentation` object, then iterates through each slide to extract its content (text), title, and image byte streams. It also shows how to save an extracted image to a file. ```Ruby require 'ruby_powerpoint' deck = RubyPowerpoint::Presentation.new "specs/fixtures/sample.pptx" deck.slides.each do |slide| slide.content # => ["Presentation Notes...", "12345"] slide.title # => "Prsentation Header" slide.images # => ["\xE3=\xA8h\x8E\x17\...."] Byte Stream # Saving the image byte stream to a file: File.open('temp.jpg', 'w'){|f| f.puts slide.images[0].read} end ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.