Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/docxml/src/files/Styles.ts>Styles

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

Constructors

new
Styles(location: string)

Properties

private
readonly
latentStyles: LatentStyle[]
private
readonly
styles: Style[]

Methods

protected
toNode(): Document
add(properties: Omit<Style, "id"> & { id?: string; })
addLatent(properties: LatentStyle)
ensureStyle(styleName: string)
get(id: string)
hasStyle(id: string)

Static Methods

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

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