Hi! I'm creating a docx file from the html code. What should I add html code to the page break occurred?
Thanks.
Hi! I'm creating a docx file from the html code. What should I add html code to the page break occurred?
Thanks.
Hello,
This is a simple example:
require_once '../../classes/CreateDocx.inc';
$docx= new CreateDocx();
$html= '<p><span>This is a page</span></p><p style="page-break-before:always;"><span>This is other page</span></p>';
$docx->embedHTML($html);
$docx->createDocx('../docx/example_embedSimpleHTML');
Regards.