import { Docx } from "https://deno.land/x/docxml@1.5.1/src/Docx.ts";
Represents the .docx file, which is essentially a ZIP archive with a bunch of XML files and some naming conventions.
The files contained in a .docx archive are modelled as properties (recursive) using classes in
src/bundle/
.
Constructors
Properties
private
_officeDocument: OfficeDocument | nullprivate
readonly
options: Optionsreadonly
contentTypes: ContentTypesreadonly
relationships: RelationshipsStatic Methods
fromArchive(archive: ZipArchive, options?: Options): Promise<Docx>
Instantiate this class by looking at the DOCX archive for it.
fromArchive(location: string, options?: Options): Promise<Docx>
fromJsx(roots: OfficeDocumentChild[])
fromNothing(options?: Options)
Create an empty bundle, and populate it with the minimum viable contents