DocAuthDocumentInput
DocAuthDocumentInput =
string|object|Blob|Response|Promise<string|object|Blob|Response>
A string will be treated as a document authoring document in JSON format and loaded. An object will be treated as a JavaScript
representation of a Document Authoring document (e.g. the result of JSON.parse on a Document Authoring JSON string).
Examples
Section titled “Examples”// Load from JSONconst docString = '{"version":"7.0","content":[...]}';const docFromString = await system.loadDocument(docString);// Load from a JavaScript objectconst docObject = { version: '7.0', content: [...] };const docFromObject = await system.loadDocument(docObject);const fileInput = document.querySelector('input[type="file"]');const blob = fileInput.files[0];const docFromBlob = await system.loadDocument(blob);// Load from a fetch Responseconst response = await fetch('/api/document.json');const docFromResponse = await system.loadDocument(response);const docFromPromise = await system.loadDocument(fetch('/api/document.json'));const blobPromise = fetch('/api/document.json').then((r) => r.blob());const docFromBlobPromise = await system.loadDocument(blobPromise);DocAuthSystem.loadDocumentfor how this is used.- DocJSON guide