Sha256: 07d8eb09638ef97a56e211869f8dbf64f57c0e0014eaa5fbb56a0947898e0566

Contents?: true

Size: 467 Bytes

Versions: 5

Compression:

Stored size: 467 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)
      Parser.parse_format(path_to_file) do
        DocumentStructure.parse
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ooxml_parser-0.28.0 lib/ooxml_parser/docx_parser.rb
ooxml_parser-0.27.0 lib/ooxml_parser/docx_parser.rb
ooxml_parser-0.26.0 lib/ooxml_parser/docx_parser.rb
ooxml_parser-0.25.0 lib/ooxml_parser/docx_parser.rb
ooxml_parser-0.24.0 lib/ooxml_parser/docx_parser.rb