Settings
Settings consist of feature flags and configurations that alter the behavior of the Template Editor.
These settings are structured into sections, where each section controls a specific group of related properties, such as the toolbar, pages, or the editor's workspace.
Supported sections are listed below.
{
"settings": {
"itemBuilder": { },
"designViewer": { },
"colorPicker": { },
"pages": {
"list": { },
"properties": { }
},
"printAreas": { },
"layers": { },
"itemProperties": { },
"toolbar": { },
"editorSettings": { },
"itemValidation": { },
"listSettings": { },
"snapLines": {}
}
}
Let's take a closer look at these settings.
itemBuilder
The itemBuilder object allows you to define the initial properties of objects to be created in the editor. This object is defined by using the IItemData interfaces. You can set initial properties for the following design element types:
textrectangleellipseimagebarcodeqrCode
For example, this is how you can change default settings for text, ellipses, and images.
{
"itemBuilder": {
"text": { "isVertical": true },
"ellipse": { "fillColor": "rgb(255, 100, 13)" },
"image": { "borderWidth": 10, "borderColor": "rgb(255, 0, 13)" }
}
}
designViewer
The designViewer object manages the user's interaction with the work area, where they manipulate design elements.
The following example changes the units to inches, enables the grid with a step of 0.5 points, and hides the rulers.
{
"designViewer": {
"unit": "in",
"grid": { "step": 0.5, "gridEnabled": true },
"rulers": { "enable": false }
}
}
In the grid object, the step is measured in points (1/72 inch).
colorPicker
The colorPicker object configures the color picker and the color palette.
In the picker object, you can configure the color picker behavior:
defaultColorSpace– the color space selected by default, either"rgb"or"cmyk". Default:"cmyk".eyeDropperEnabled– iftrue, enables the eyedropper tool.decimalCmykEnabled– iftrue, allows fractional CMYK values.alphaEnabled– iftrue, enables the transparency (alpha channel) selection.colorSelector– the type of the color selector, either"hsv"or"none".colorInput– the color input format, one of"hex","input", or"sliders".
In the palette object, you can configure the palette sections:
document– iftrue, displays the document colors section. Default:false.user– iftrue, displays the user colors section. Default:false.default– iftrue, displays the default colors. Default:true.recommended– iftrue, displays the recommended colors. Default:false.noColor– iftrue, displays the documentNo colorsection. Default:true.
For example, to open the color picker in the RGB color space with the document and user colors on the palette, use:
{
"colorPicker": {
"picker": { "defaultColorSpace": "rgb" },
"palette": { "document": true, "user": true }
}
}
printAreas
The printAreas object configures the display of print areas in the editor. The mode property is one of "off" (default), "single", or "multiply".
{
"printAreas": { "mode": "single" }
}
layers
The layers.limited.enabled property enables the limited layers mode. When it is true, the editor converts containers when loading a design. Default: false.
{
"layers": { "limited": { "enabled": true } }
}
pages
This object allows for changing the settings of the Page panel and the Pages list:
pages.propertiespages.list
pages.properties
The pages.properties object defines which page settings can be edited:
pagePropertiesallows/disallows editing the page size.areasallows/disallows editing page areas.backgroundallows/disallows editing the background of the page.
To disable editing and only display the settings, set their readonly property to true. For example, to disable changing all these page properties, use:
{
"pages": {
"properties": {
"pageProperties": { "readonly": true },
"areas": { "readonly": true },
"background": { "readonly": true }
}
}
}
pages.list
The pages.list object allows you to customize the behavior of the Pages list.
There are two objects to configure:
createOrRemoveallows you to disable creating and deleting the pages. If its propertyenabledset tofalse, it hides the Create button and disables the context menu for the Pages list.changeOrderallows you to disable changing the order of pages using D&D. To do so, set itsenabledproperty tofalse.
To disable adding, removing, and changing the page order, use:
{
"pages": {
"list": {
"createOrRemove": { "enabled": false },
"changeOrder": { "enabled": false }
}
}
}
itemProperties
The itemProperties object allows you to change the appearance of object property groups in the editor.
The following property groups can be disabled:
fill– fill and stroke colorsborder– border (stroke) settingsblending– blending mode and opacitywrapping– text wrappingeffects– item effectsoverprint– overprint settingsnameAndTitle– the item nameplaceholder– placeholder settingstoggleSet– properties used by the toggle set functionalitygeneral– permission properties for the target editorsdata– properties used by the VDP functionalityviolation– violation warnings
To hide these property groups, use:
{
"itemProperties": {
"data": false,
"toggleSet": false,
"general": false
}
}
toolbar
The toolbar object allows you to configure buttons for creating design elements.
You can add buttons so that the user can create:
textimagerectangleellipsebarcodeqrCode
To hide the buttons, use
{
"toolbar": {
"barcode": { "enabled": false },
"qrCode": { "enabled": false },
"rectangle": { "enabled": false },
"ellipse": { "enabled": false },
"text": { "enabled": false },
"image": { "enabled": false }
}
}
editorSettings
This object enables the Editor settings button. To disable this button, set enabled to false.
To hide the button, use:
{
"editorSettings": { "enabled": false }
}
itemValidation
The itemValidation object configures the validation rules for items in the design. For the description of the preflight check and monitored violations in Customer's Canvas, refer to the Validation Warnings topic.
Validation rules can be divided into three groups:
Design areas and text
The itemValidation.violation object configures the design validation in the Template Editor:
regionenables the region validation.bleedenables the bleed zone validation.textCropenables checking that all text fits.inPlaceNotSupportedenables checking text elements for WYSIWYG mode support.
To disable checking unsupported text properties, use:
{
"itemValidation": {
"violation": {
"inPlaceNotSupported": false
}
}
}
Safety lines
Safety line validation is controlled by the group of the following properties:
safetyLineenables the safety line validation.safetyLinesis one of"InsideAll"|"PartiallyInsideAny"|"InsideAny"|"Disabled". For more details, refer to the Validation Warnings topic.toleranceis the distance that allows you to suppress warnings about violations of safety lines or the bleed zone when an object is close enough to them.
To check if the elements are inside all the safety lines with acceptable tolerance, use:
{
"itemValidation": {
"violation": {
"safetyLine": true,
"safetyLines": "InsideAll",
"tolerance": 0.1
}
}
}
Image resolution
Image resolution is controlled by the properties of the itemValidation.qualityMeter object:
targetResolution– the DPI of the print files.enabled– iftrue, displays the quality meter.warning– the percentage oftargetResolutionthat defines the acceptable quality level.bad– the percentage oftargetResolutionthat defines the unacceptable quality level.qualityChangeContainersEnabled– iftrue, displays the DPI bar.
For example, to check the image resolution with a target value of 200 DPI and display warnings at 160 DPI and errors at 100 DPI, use:
{
"itemValidation": {
"qualityMeter": {
"enabled": true,
"targetResolution": 200,
"warning": 80,
"bad": 50
}
}
}
Here, the targetResolution specifies a DPI of the print files, and the bad and warning properties specify two image quality levels as a percentage of targetResolution. In this example, a DPI lower than 100 will be considered bad, a DPI from 100 through 160 will display a warning, and a DPI higher than 160 will be considered acceptable.
listSettings
For the description of the list settings in Customer's Canvas, refer to the Configuring lists topic.
bulletChar– the symbolfirstLineIndent– the first line indentlevelIndent– a new level indentlistIndent– the entire list indentmaxLevel– the number of nested levelsnumberingFormat– the format, one of"number","lowerLetter","upperLetter","lowerRoman","upperRoman","none".tabOffset– the distance between the bullet and the first letter.
For example, this is how you can limit the list to a single level and customize the bullet points.
{
"listSettings": {
"maxLevel": 1,
"bulletChar": "*"
}
}
snapLines
The snapLines object allows you to define which elements the snap line should cling to.
snapToItemsenables snapping to design elements.snapToLockedItemsenables snapping to locked design elements.snapToPageenables snapping to page bounds.snapToGridenables snapping to grid cells.snapToRegionenables snapping to regions.snapToSafetyLinesenables snapping to safety lines.
For example, this is how you can disable snapping to locked design elements.
{
"snapLines": {
"snapToLockedItems": { "enabled": false }
}
}