title: PageBreak in converting HTML to doc and docx fromat - PHP
body: <p>I have converted HTML to DOC format using PHP.</p>
  
  <p>kindly view the below screen shot.</p>
  
  <p><img src="https://i.stack.imgur.com/hohBT.jpg" alt="enter image description here"></p>
  
  <p>My Problem is <strong>i need to print 1st table in first page and 2nd table in second page.</strong></p>
  
  <p>Here is my set of code.</p>
  
  <pre><code>header("Content-type: application/vnd.ms-word");
  header("Content-Disposition: attachment;Filename=document_name.doc");
  echo $html = '&lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;HTML TO WORD&lt;/title&gt;
  &lt;/head&gt;
  &lt;style type="text/css"&gt;
  .table {
   page-break-after: always;
  }
  &lt;/style&gt;
  &lt;body&gt;
  &lt;table width="600" border="1"&gt;
  &lt;tr&gt;
  &lt;td height="105"&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td style="text-align:center; font-size:30px;color:#ed6500;"&gt;&lt;b&gt;Title&lt;/b&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td style="text-align:center; color:#595959;"&gt;Author:
  &lt;span style="color:#9d402b; text-decoration:underline;"&gt;Author name&lt;/span&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;table width="600" border="1"&gt;
  &lt;tr&gt;
  &lt;td&gt;Table Of Contents&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;Category 1&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td style="padding-left:30px;"&gt;Sub Category 1&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;';
  </code></pre>
  
  <p>How can this be done?</p>
  
  <p>Thanks in advance...</p>