Type: Function

How to get createDocumentFromRemoteTemplate?


import createDocumentFromRemoteTemplate from 'fontoxml-document-from-template/src/createDocumentFromRemoteTemplate.js'

Create a new document using the given remote document as a template.

This will load the template document, apply mutations as specified in the given callback (if any), and then send the result to the CMS in order to create a new document.

Note that Ids contained in the template will be regenerated, to ensure they are unique. This means it is impossible to use these ids in, for instance, crossreferences


  1. remoteDocumentId


    The remote ID of the document to use as a template

  2. options


    Type: Object



Type: Promise<DocumentId>

Returns a promise which resolves to the documentId of the created document.