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

x/docxml/src/Docx.ts>Docx#cloneAsEmptyTemplate

TypeScript (component) library for building and parsing a DOCX file
Go to Latest
method Docx.prototype.cloneAsEmptyTemplate
import { Docx } from "https://deno.land/x/docxml@5.9.0/src/Docx.ts";

Clone some reusable configuration to a new instance of Docx:

  • XML rendering rules
  • Settings
  • Default content types
  • Custom styles

Does not clone other things, like:

  • Not content
  • Not content type overrides
  • Not relationships (unless required for settings)
  • Not anything else either

Returns

Docx<PropsGeneric>