Hello,
We are generating documents using -
$templateDocx = new CreateDocxFromTemplate("$INPUT_DIRECTORY/$templateFileName");
$templateVariablesArray = $templateDocx->getTemplateVariables();
<---Some line of Code----->
$templateDocx->createDocx($outputFileName);
Documents generate successfully but out of bulk documents, few docx files are getting messages while trying to open in Word.
Below are the Messages -
1.We're sorry. We can't open '***file_name***.docx' because we found a problem with its content.
When I click on 'Ok' It shows a second message ---
2. Word found unreadable content in '***file_name***.docx'. Do you want to recover the contents of this document? If you trust the source of this document, click Yes.
When I click on Yes I can see the contents but the file name get changed to 'Document1'.
What is the issue for some specific files out of bulk files generated using the library function?
Thank You.