Skip to content

Latest commit

 

History

History
37 lines (20 loc) · 892 Bytes

File metadata and controls

37 lines (20 loc) · 892 Bytes

document.importCanvasPublishTemplate()

Availability

Animate 2020.

Usage

document.importCanvasPublishTemplate(pathURI)

Parameters

pathURI :fileURI.A string, expressed as a file:/// URI, that specifies the path of the HTML template.

Returns

Boolean value. True if imported successfully.False otherwise.

Description

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.

Example

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”);