Sha256: f17f41805077bd03d8f657cb71cac68d1645b963ac23eab6185279f883f53aea

Contents?: true

Size: 565 Bytes

Versions: 12

Compression:

Stored size: 565 Bytes

Contents

# frozen_string_literal: true

require_relative 'common_parser/common_data/valued_child'
require_relative 'docx_parser/document_structure'

module OoxmlParser
  # Basic class for DocxParser
  class DocxParser
    # Parse docx file
    # @param path_to_file [String] file path
    # @return [DocumentStructure] result of parse
    def self.parse_docx(path_to_file)
      file = OoxmlFile.new(path_to_file)
      Parser.parse_format(file) do |yielded_file|
        DocumentStructure.new(unpacked_folder: yielded_file.path_to_folder).parse
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ooxml_parser-0.37.1 lib/ooxml_parser/docx_parser.rb
ooxml_parser-0.37.0 lib/ooxml_parser/docx_parser.rb
ooxml_parser-0.36.1 lib/ooxml_parser/docx_parser.rb
ooxml_parser-0.36.0 lib/ooxml_parser/docx_parser.rb
ooxml_parser-0.35.0 lib/ooxml_parser/docx_parser.rb
ooxml_parser-0.34.2 lib/ooxml_parser/docx_parser.rb
ooxml_parser-0.34.1 lib/ooxml_parser/docx_parser.rb
ooxml_parser-0.34.0 lib/ooxml_parser/docx_parser.rb
ooxml_parser-0.33.0 lib/ooxml_parser/docx_parser.rb
ooxml_parser-0.32.0 lib/ooxml_parser/docx_parser.rb
ooxml_parser-0.31.0 lib/ooxml_parser/docx_parser.rb
ooxml_parser-0.30.0 lib/ooxml_parser/docx_parser.rb