class DocxCrConverter::ExtractFiles

Defined in:

docx_cr_converter/extract_files.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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"]


[View source]

Instance Method Detail

def docx_path : String #

[View source]
def errors : Array(String) #

[View source]
def errors? #

@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


[View source]
def xml_document : String | XML::Node #

[View source]