create Document From Remote Template
Type: Function
How to get createDocumentFromRemoteTemplate?
JavaScript
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
Arguments
remote
Document Id (Required)
Type: RemoteDocumentId
The remote ID of the document to use as a template
options
(Optional)
Type: Object
Properties
Returns
Type: Promise<DocumentId>
Returns a promise which resolves to the documentId of the created document.