import { Archive } from "https://deno.land/x/docxml@5.12.1/src/classes/Archive.ts";
Constructors
new
Archive(zip?: JSZip)Methods
addBinaryFile(location: string, promised: Promise<Uint8Array>): this
Create a new text file in the DOCX archive.
In order to keep this method (and methods that use it, eg. Docx#toArchive) synchronous, we're only writing a promise to memory for now and leave the asynchronous operations for output time (see also Archive#toUint8Array).
asUint8Array(): Promise<Uint8Array>
hasFile(location: string): boolean
readBinary(location: string): Promise<Uint8Array>
readText(location: string): Promise<string>
readXml(location: string): Promise<Document>
toFile(location: string): Promise<void>
Static Methods
fromUInt8Array(data: Uint8Array)