Hi! I'm creating a docx file from the html code. What should I add html code to the page break occurred?
Thanks.
🏷️ Limited Offer: 25% OFF 🏷️
First 100 purchases only — Special discount!
Use this coupon on checkout: PHPDXPJ_D1SC1N5T
Get it nowHi! 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.