Variables are not substituted with values in docx template
distributev opened this issue · comments
distributev commented
Consider the below template with var0,var1 and var2
I used yarg to generate the PDF, I filled var0, var1 and var2 with data however the output PDF came with the unsubstituted ${var0},
${var1} and ${var2}
Environment
latest yarg
- Operating system:
Windows 10
Map<String, Object> variablesData = new HashMap<String, Object>();
variablesData.put("var0", "data0");
variablesData.put("var1", "data1");
variablesData.put("var2", "data2");
final String TEMPLATE_DOCX_WORDPAD_PATH = "src/test/resources/input/external-libraries/template-var0var1var2.docx";
String outputFilePath = TestsUtils.TESTS_OUTPUT_FOLDER + "/YargTest/generatePDFTemplateDocxSimple/output.pdf";
generateDocument(outputFilePath, TEMPLATE_DOCX_WORDPAD_PATH, variablesData);