Skip to main content
Module

x/docxml/src/bundle/OfficeDocument.ts>OfficeDocument

An experimental Deno tool to transform XML to DOCX with a little XPath- and component based configuration
Go to Latest
class OfficeDocument
extends XmlFile
import { OfficeDocument } from "https://deno.land/x/docxml@1.4.0/src/bundle/OfficeDocument.ts";

Constructors

new
OfficeDocument(
location: string,
relationships?,
children?: OfficeDocumentChild[],
)

Properties

private
_styles: Styles | null
readonly
children: OfficeDocumentChild[]
readonly
relationships: Relationships
readonly
styles

Methods

protected
toNode(): Document

Add content to the document body

Static Methods

fromArchive(archive: ZipArchive, location: string): Promise<OfficeDocument>

Instantiate this class by looking at the DOCX XML for it.