Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/docxml/src/Docx.ts>Docx.fromArchive

TypeScript (component) library for building and parsing a DOCX file
Go to Latest
method Docx.fromArchive
import { Docx } from "https://deno.land/x/docxml@5.11.3/src/Docx.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; }

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

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

Type Parameters

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

Parameters

location: string