title: while printing a pdf table breaking and calculations
body: <p>I have a table where while printing table is getting split in multiple pages , but i have few calculations when moving to next page</p>
  <p>so while printing here the table row is getting split into two pages , and i want to add the remaining data to calculate what is the total in this page and carry forward that sum to next page , is there any way to identify this table brake ?</p>
  <p><a href="https://i.stack.imgur.com/gOoCs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gOoCs.png" alt="enter image description here" /></a></p>
  <p>Sharing the html table structure :</p>
  <pre><code>    &lt;table
              id=&quot;details_report&quot;
              style={{
                fontSize:12,
                borderCollapse: 'collapse',
                border: '1px solid black',
                width: '100%',
                margin: '0px',
              }}
            &gt;
              &lt;thead&gt;
                &lt;tr&gt;
                  &lt;td
                    colspan=&quot;3&quot;
                  &gt;
                   Name of table
                  &lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr style={{ borderTop: '1px solid black' }}&gt;
                  &lt;td
                    style={{ paddingLeft: 15, fontWeight: 'bold' }}
                  &gt;
                    Note
                  &lt;/td&gt;
                  &lt;td
                    style={{
                      fontWeight: 'bold',
                      paddingLeft: 12,
                    }}
                  &gt;
                    PARTICULARS
                  &lt;/td&gt;
                    &lt;td
                      data-a-h=&quot;end&quot;
                      style={{
                        textAlign: 'center',
                        fontWeight: 'bold',
                        paddingRight: 20,
                      }}
                    &gt;
                      As at 31/03/2020
                   &lt;/td&gt;
                &lt;/tr&gt;
              &lt;/thead&gt;
              &lt;tbody&gt;
                {Data &amp;&amp;
                  Data.map((el, i) =&gt; (
                    &lt;&gt;
                      &lt;tr&gt;
                        &lt;td
                        &gt;
                          {el.note_number}{G_Children[el.detail_number - 1]})
                        &lt;/td&gt;
                        &lt;td
                        &gt;
                          &lt;strong&gt;{el.account}&lt;/strong&gt;
                        &lt;/td&gt;
                        &lt;td/&gt;
                      &lt;/tr&gt;
  
                      {el.children.map((el2, j) =&gt; (
                        &lt;&gt;
                          &lt;tr&gt;
                            &lt;td /&gt;
                            &lt;td&gt;{el2.account}&lt;/td&gt;
                            &lt;td &gt;{el2.total}&lt;/td&gt;
                          &lt;/tr&gt;
                          {/* after every 5 entry need space */}
                          {el.children.length !== j + 1 &amp;&amp;
                            (j + 1) % 5 === 0 &amp;&amp; (
                              &lt;tr style={{ height: 15 }}&gt;
                                &lt;td className=&quot;emptytd&quot; colspan=&quot;3&quot; /&gt;
                              &lt;/tr&gt;
                            )}
                        &lt;/&gt;
                      ))}
  
                      &lt;tr&gt;
                        &lt;td colSpan=&quot;2&quot;/&gt;
                        &lt;td&gt;{el.total}&lt;/td&gt;
                      &lt;/tr&gt;
                    &lt;/&gt;
                  ))}
              &lt;/tbody&gt;
            &lt;/table&gt;
  </code></pre>
  <p>For Json Data i have attached a file</p>