Skip to main content
Module

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

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

Constructors

new
ContentTypes(location: string)

Properties

readonly
defaults: Array<ContentTypeDefault>
readonly
overrides: Array<ContentTypeOverride>

Methods

protected
toNode(): Document
addDefault(extension: string, contentType: string | ContentType)
addOverride(partName: string, contentType: ContentType)

Static Methods

fromArchive(archive: ZipArchive, location: string)

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