Skip to main content
Module

x/docxml/mod.ts>HeaderXml

TypeScript (component) library for building and parsing a DOCX file
Go to Latest
class HeaderXml
extends HeaderFooterAbstractionXml<HeaderFooterChild | WatermarkText>
import { HeaderXml } from "https://deno.land/x/docxml@5.11.1/mod.ts";

Constructors

new
HeaderXml(location: string)

Static Methods

fromArchive(archive: Archive, location: string)

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

fromJsx(location: string, roots: HeaderFooterRoot<HeaderFooterChild | WatermarkText>)

Create a new DOCX with contents composed by this library's components. Needs a single JSX component as root, for example <Section> or <Paragragh>.