import { BinaryFile } from "https://deno.land/x/docxml@5.13.0/src/classes/BinaryFile.ts";
A utility class that represents a binary file inside the DOCX archive -- currently used for images.
Constructors
Methods
addToArchive(archive: Archive): void
Add all related files to the given archive.
getRelated(): File[]
Get all XmlFile instances related to this one, including self. This helps the system serialize itself back to DOCX fullly. Probably not useful for consumers of the library.
By default only returns the instance itself but no other related instances.
isEmpty()
Let a file tell the system when it is effectively empty, so it can be omitted from the archive.
toUint8Array(): Promise<Uint8Array>