Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/docxml/src/classes/Archive.ts>Archive#addBinaryFile

TypeScript (component) library for building and parsing a DOCX file
Go to Latest
method Archive.prototype.addBinaryFile
import { Archive } from "https://deno.land/x/docxml@5.3.4/src/classes/Archive.ts";

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).

Parameters

location: string
promised: Promise<Uint8Array>