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

x/docxml/src/files/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@3.1.1/src/files/OfficeDocument.ts";

Constructors

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

Properties

readonly
children: OfficeDocumentChild[]
readonly
comments
readonly
relationships: Relationships
readonly
styles

Methods

protected
toNode(): Document

Add content to the document body

Set the contents of the document

Static Methods

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

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