Skip to main content
Module

x/docxml/mod.ts>SettingsXml

TypeScript (component) library for building and parsing a DOCX file
Go to Latest
class SettingsXml
implements SettingsI
extends XmlFile
import { SettingsXml } from "https://deno.land/x/docxml@5.5.3/mod.ts";

Constructors

new
SettingsXml(
location: string,
relationships?,
settings?: SettingsI,
)

Properties

evenAndOddHeaders
isTrackChangesEnabled
readonly
relationships: RelationshipsXml

Methods

protected
toNode(): Document
get(key: keyof SettingsI): SettingsI[key]

Get a setting.

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.

set(key: keyof SettingsI, value: SettingsI[key]): void

Set a setting.

Static Methods

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

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