Class: Docx

Docx

Class to create docx file from HTML Element


new Docx()

Source:
utils/Docx.js

Methods


addElement(elt)

Add an element

Parameters:
Name Type Description
elt Element
Source:
utils/Docx.js

addParagraph(content)

Add a new paragraph

Parameters:
Name Type Description
content string
Source:
utils/Docx.js
Returns:
Type
Paragraph

getParagraph()

Get current paragraph

Source:
utils/Docx.js
Returns:
Type
Paragraph

toBlob()

Convert to blob

Source:
utils/Docx.js
Returns:
Type
Promise