Skip to main content
Module

x/docxml/mod.ts>default.fromArchive

TypeScript (component) library for building and parsing a DOCX file
Go to Latest
method default.fromArchive
import { default } from "https://deno.land/x/docxml@5.6.0/mod.ts";

Instantiate this class by giving it a .docx file if it is already loaded as a Archive instance.

Type Parameters

optional
PropsGeneric extends { [key: string]: unknown; } = { [key: string]: never; }

Parameters

archive: Archive

Returns

Promise<Docx<PropsGeneric>>

Instantiate this class by giving it a .docx file loaded as a byte array.

Type Parameters

optional
PropsGeneric extends { [key: string]: unknown; } = { [key: string]: never; }

Parameters

data: Uint8Array

Returns

Promise<Docx<PropsGeneric>>

Instantiate this class by pointing at a .docx file location.

Type Parameters

optional
PropsGeneric extends { [key: string]: unknown; } = { [key: string]: never; }

Parameters

location: string

Returns

Promise<Docx<PropsGeneric>>