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

createDocumentLocationNEW

createDocumentLocation(savedDocument, target): Promise<Readonly<{ documentDigest: string; pointer: string; range?: Readonly<{ begin: number; end: number; }>; }>>

Creates a portable location for a paragraph in a document returned by DocAuthDocument.saveDocument.

The pointer must resolve to a paragraph in the current DocJSON version. A supplied range is a non-empty half-open interval measured in UTF-16 code units.

object

Omit<DocumentLocation, "documentDigest">

Promise<Readonly<{ documentDigest: string; pointer: string; range?: Readonly<{ begin: number; end: number; }>; }>>