Hi,
I have tested it in IvyScript with the Ivy File type. Please get the Files path with `getAbsolutePath()`
<pre>
import ch.ivyteam.ivy.addons.docfactory.TemplateMergeField;
import ch.ivyteam.ivy.addons.docfactory.FileOperationMessage;
import ch.ivyteam.ivy.addons.docfactory.DocumentTemplate;
File image = new File("logo-euro.jpg");
File template = new File("template_picture.docx"); // mergefield named Image:FIELD1
List<TemplateMergeField> mergeFields = new List();
mergeFields.add(new TemplateMergeField("FIELD1", image.getAbsolutePath()));
DocumentTemplate dt = new DocumentTemplate(template.getAbsolutePath(),
ivy.wf.getApplication().getFileArea().getAbsolutePath(), "result", "pdf",
mergeFields);
FileOperationMessage fom = dt.generateDocument();
ivy.log.info("Result success ? {0} and document produced in {1}", fom.isSuccess(), fom.files.get(0));
</pre>
I get `Result success ? true and document produced in D:\ivy\designer\6.1\files\application\result.pdf`
It works fine :
![alt text][1]
Cheers
Emmanuel
[1]: http://answers.axonivy.com/upfiles/2016-06-20_1516.png