Hi everyone,
I am just new to phpdocx but I really love it. In my current usecase, I am inserting a lot of HTML to a template with these functions:
$docx = new CreateDocxFromTemplate('xxx.docx');
$docx->embedHTML($html_input);
Now I want to enable the widowcontrol for everything in the word document. I have set up this an combined it with embedHTML
$paragraphOptions = array(
'widowControl' => true,
);
$docx->embedHTML($html_input, $paragraphOptions);
But it's not working. Is it possible, that the paragraphOptions only work for addText? In my usecase, I would like to stay with my preformatted html coming from another system and just hand it over as one junk rather splitting it up and rebuilding the structure in different paragraphs.
Am I doing/misunderstanding anything wrong here? Is the widow control achievable with embedHTML or any other way to deal with this?
Thanks in advance!