• Create a Document for a particular Template.

    import {TemplateDocument} from '@verdocs/js-sdk/Templates';

    await TemplateDocument.createDocument((VerdocsEndpoint.getDefault(), templateID, params);

    Parameters

    • endpoint: VerdocsEndpoint
    • templateId: string
    • file: File
    • Optional onUploadProgress: ((percent, loadedBytes, totalBytes) => void)
        • (percent, loadedBytes, totalBytes): void
        • Parameters

          • percent: number
          • loadedBytes: number
          • totalBytes: number

          Returns void

    Returns Promise<ITemplateDocument>