I tried to load a template from a database as described in this example:
https://www.phpdocx.com/documentation/cookbook/improve-phpdocx-performance
The script is run from command line. When I ran the code below, the docx seems to be dsplayed within the cli instead of being written to file:
$docxContent = $row['data'];
$data = base64_decode($docxContent);
$docxStructure = unserialize($data);
$docx = new Phpdocx\Create\CreateDocxFromTemplate($docxStructure);
$docx->enableCompatibilityMode();
$docx->createDocx('test');
Is this is a bug or am I overlooking something? Streaming is enabled, license is premium. Thank you in advance!