Hi, i have a problem with phpdocx on Windows Server 2016
PHP = 7.2
Laravel 5.7, Class install correctly.
License = Premium
When this script is executed,
$docx = new \Phpdocx\Create\CreateDocx();
$docx->enableCompatibilityMode();
$text = 'Lorem ipsum dolor ...';
$docx->addText($text, $paramsText);
$docx->createDocx('example_text');
$docx->transformDocument('example_text.docx', 'example_text.pdf');
file is rendered to browser (*.docx, not *.pdf).
When i using:
$docx->createDocx('D:\example_text');
$docx->transformDocument('D:\example_text.docx', 'D:\example_text.pdf');
I getting the same (render D_example_text.docx to browser).
ALWAYS render to browser.
How fix it?
I want open template, fill data and save file as PDF without saving *.docx in file system. It's possible?