class OoxmlParser::PptxParser

Basic class for parsing pptx

Public Class Methods

parse_pptx(path_to_file) click to toggle source

Parse pptx file @param path_to_file [String] file path @return [Presentation] result of parse

# File lib/ooxml_parser/pptx_parser.rb, line 11
def self.parse_pptx(path_to_file)
  file = OoxmlFile.new(path_to_file)
  Parser.parse_format(file) do |yielded_file|
    Presentation.new(unpacked_folder: yielded_file.path_to_folder).parse
  end
end