Skip to content
Document Authoring DA  API Docs v1.9.1
npmGitHub

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.

saveDocument(): Promise<object>

Returns the current document in the Document Authoring format as a JavaScript object. This object can be safely persisted.

Promise<object>

DocJSON guide


saveDocumentJSONString(): Promise<string>

Returns the current document in the Document Authoring format as a JSON string. This string can be safely persisted.

Promise<string>


exportPDF(options?): Promise<ArrayBuffer>

Exports a snapshot of the current document as a PDF file.

ExportPDFOptions

Promise<ArrayBuffer>

PDF export guide


exportDOCX(options?): Promise<ArrayBuffer>

Exports a snapshot of the current document as a DOCX file.

ExportDOCXOptions

Promise<ArrayBuffer>

DOCX export guide


docAuthSystem(): DocAuthSystem

The DocAuthSystem this document is bound to.

DocAuthSystem