Animate 2020.
document.importCanvasPublishTemplate(pathURI)
pathURI :fileURI.A string, expressed as a file:/// URI, that specifies the path of the HTML template.
Boolean value. True if imported successfully.False otherwise.
Method; Imports and sets the HTML5 Canvas Publishing Template for given document,from the specified location pathURI.This method is specific to HTML Canvas document only.
The following example replace the tagged swatch with the given name"Oldswatch" to the given new swatch object swatch1.
var pathURI= "file:///C|/Users/username/desktop/CanvasTemplate.html";
var exportFlag =fl.getDocumentDOM().importCanvasPublishTemplate(pathURI);
if(!exportFlag)
fl.trace(“Template could not be imported”);