Docx.XML
— TypeA type that indicates to return the contents as XML strings
Docx._extract_text
— MethodExtracts text elements from the given XML structure
Docx._flatten
— MethodCreates an array of all the XML nodes by pushing into an array as the root node and children are traversed.
Docx._is_docx_text_node
— MethodDetermines whether the XML node element contains text data or not.
Docx.open
— MethodOpen a document
Docx.read!
— MethodReads the docfile contents as a string
Docx.read
— Methodread(docx, XML)
Reads the contents of the document and returns them as a plain string
- Header text will be clustered
- Paragraphs will be separated by new lines.
- Footnotes will be clustered
Docx.read
— MethodRead the contents of the document as a string.
- Header text will be clustered
- Paragraphs will be separated by new lines.
- Footnotes will be clustered
NOTE: This will internally mutate docx
but multiple calls to this function with the same docx will return the same string.
Docx.read_binary!
— MethodReads the docfile contents as a string