{"operations":[{"id":"TemplateProcessor.Render","aliases":[],"signature":["document","blob"],"category":"Conversion","label":"Render with template","requires":null,"since":"","description":"Render the target document with the associated template if any. Returns the rendered Blob or the main Blob if no template is associated to the document.","params":[{"name":"attach","description":"","type":"boolean","widget":null,"values":[],"order":0,"required":false},{"name":"save","description":"","type":"boolean","widget":null,"values":["true"],"order":0,"required":false},{"name":"store","description":"","type":"boolean","widget":null,"values":["false"],"order":0,"required":false},{"name":"templateData","description":"","type":"string","widget":null,"values":[],"order":0,"required":false},{"name":"templateName","description":"","type":"string","widget":null,"values":[],"order":0,"required":false}]},{"id":"TemplateProcessor.Detach","aliases":[],"signature":["document","void"],"category":"Conversion","label":"Detach a template","requires":null,"since":"","description":"Detach a template from all its bound documents.","params":[]},{"id":"javascript.FilterTemplatesByType","aliases":[],"signature":["document","documents"],"category":"javascript","label":"javascript.FilterTemplatesByType","requires":null,"since":null,"description":"Filter templates according to the type of a given input document.","params":[]},{"id":"javascript.RenderPdf","aliases":[],"signature":["document","blob"],"category":"javascript","label":"javascript.RenderPdf","requires":null,"since":null,"description":"Render a document with a given template and converts it to PDF.","params":[{"name":"templateName","description":null,"type":"string","widget":null,"values":[],"order":0,"required":false},{"name":"attach","description":null,"type":"boolean","widget":null,"values":[],"order":0,"required":false},{"name":"templateData","description":null,"type":"string","widget":null,"values":[],"order":0,"required":false}]}],"doctypes":{"TemplateSource": {"parent":"Document","schemas":["common","file","dublincore","uid","documenttemplate"],"facets":["Downloadable","Versionable","Commentable","HasRelatedText","Template"]},"TemplateBasedFile": {"parent":"File","schemas":[],"facets":["TemplateBased"]},"WebTemplateSource": {"parent":"Document","schemas":["common","note","files","dublincore","uid","documenttemplate"],"facets":["Downloadable","Versionable","Commentable","HasRelatedText","Template"]}},"schemas":{"documenttemplate":{"@prefix":"tmpl","templateName":"string","applicableTypes":"string","forcedTypes":"string","templateType":"string","templateData":"string","allowOverride":"boolean","outputFormat":"string","targetRenditionName":"string","useAsMainContent":"boolean"},"templatesupport":{"@prefix":"nxts","bindings":{"type":"complex","fields":{"templateEntry":{"type":"complex","fields":{"templateName":"string","templateId":"string","templateData":"longString","useMainContentAsTemplate":"boolean"}}}}}},"facets":[{"schemas":[],"id":"Template"},{"schemas":["templatesupport"],"id":"TemplateBased"}]}