Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.4.2/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.