DocAuthDocument
DocAuthDocument:
{}A document instance. Holds the content and provides methods for saving, exporting to PDF/DOCX, and more.
Create documents via DocAuthEditor and/or DocAuthSystem.
Methods
Section titled “Methods”saveDocument()
Section titled “saveDocument()”Returns the current document in the Document Authoring format as a JavaScript object. This object can be safely persisted.
Returns
Section titled “Returns”saveDocumentJSONString()
Section titled “saveDocumentJSONString()”Returns the current document in the Document Authoring format as a JSON string. This string can be safely persisted.
Returns
Section titled “Returns”exportPDF()
Section titled “exportPDF()”exportPDF(
options?):Promise<ArrayBuffer>
Exports a snapshot of the current document as a PDF file.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”exportDOCX()
Section titled “exportDOCX()”exportDOCX(
options?):Promise<ArrayBuffer>
Exports a snapshot of the current document as a DOCX file.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”docAuthSystem()
Section titled “docAuthSystem()”docAuthSystem():
DocAuthSystem
The DocAuthSystem this document is bound to.