{{tag>Index Programmers_Reference, Methods IDOCEngineClient_Interface createDynanicTemplate}} ====createDynamicTemplate (String, String, byte [], String)==== public DataPresentationTemplate createDynamicTemplate (String templateName, String fileName, byte [] fileData, String dirPath) Implementers of this method are supposed to create the DataPresentationTemplate on the fly from the given parameters. They should also save the template file and all resources (if any) in the provided directory. ===Parameters=== |''templateName''|name of the template to create| |''fileName''|name of the original file containing the template and possibly resources (if file represents an archive, for example).| |''fileData''|data of the original file (it can represent the template itself or an archive containing the template and its resources)| |''dirPath''|name of the directory where the template file and all its resources (if any) should be written. ===Returns=== newly create template.