NLdoc.Conversion.Reader.Docx.Files (NLdoc.Conversion.Reader.Docx v1.1.2)
View SourceThis module provides functions to find specific files inside a Docx document.
TODO: write proper tests for this module:
- extract a regular Zip file from fixtures
- Docx.Files.read("path/to/extracted/zip")
- assert that the files are found correctly and the correct
Docx.Files
struct is returned - assert that the
Docx.Files
struct can be used to find the correct files:
Docx.Files.document/1
Docx.Files.core_properties/1
Docx.Files.numberings/1
Docx.Files.styles/1
Docx.Files.relationships_of/2
Summary
Functions
Read the contents of a directory containing an unzipped Docx file and parse the [Content_Types].xml
file
to return a Docx.Files
struct that can be used with the rest of the functions in this module.
Types
@type t() :: %NLdoc.Conversion.Reader.Docx.Files{ dir: String.t(), files: [String.t()], types: NLdoc.Conversion.Reader.Docx.Files.ContentTypes.t() }
Functions
Read the contents of a directory containing an unzipped Docx file and parse the [Content_Types].xml
file
to return a Docx.Files
struct that can be used with the rest of the functions in this module.