DocxCrConverter::ExtractFiles
Inherits Reference / Object
Constructors
new(docx_path : String)
@param docx_path [String] path to docx filename @return [XML::Document] XML document @return [Array] errors @example DocxCrConverter::ExtractFiles.new("path/to/file.docx")
=> #XML::Document:0x00007f8b9c0a1b00
=> []
@example DocxCrConverter::ExtractFiles.new("path/to/file.docx")
=> nil
=> ["No such file or directory @ rb_sysopen - path/to/file"]
@example DocxCrConverter::ExtractFiles.new("path/to/file.docx")
=> nil
=> ["File is not a zip file"]
Instance methods
docx_path
Sourceerrors
Sourceerrors?
@return [Boolean] true if errors are present @example DocxCrConverter::ExtractFiles.new("path/to/file.docx").errors?
=> false
@example DocxCrConverter::ExtractFiles.new("path/to/file.docx").errors?
=> true
xml_document
Source