class Doc2Text::Pptx::Document
Public Class Methods
parse_and_save(input, output_filename)
click to toggle source
# File lib/doc2text/pptx/pptx.rb, line 5 def self.parse_and_save(input, output_filename) docx = new input begin docx.unpack output = File.open output_filename, 'w' markdown = Markdown::DocxParser.new output, nil begin docx.parse markdown ensure markdown.close end ensure docx.clean end end
Public Instance Methods
contains_extracted_files?()
click to toggle source
# File lib/doc2text/pptx/pptx.rb, line 21 def contains_extracted_files? File.exist? File.join(extract_path, '[Content_Types].xml') end
extract_extension()
click to toggle source
# File lib/doc2text/pptx/pptx.rb, line 25 def extract_extension 'unpacked_pptx' end