Hi Team,
I am facing a an issue where if all of my variables in a docx document are not in same font, then few of them don't get replaced with actual values.
Below is the piece of code I use to replace variables and generate pdf, please advise what is missing
tempDir = correctDirectoryPath(tempDir);
bytes = IOUtils.toByteArray(inputStream);
file = new File(tempDir + fileName + this.formatter.format(new Date()) + ".pdf");
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(new ByteArrayInputStream(bytes));
VariablePrepare.prepare(wordMLPackage); ...