Below is my code to display start line and end line of contents.
Query: How to know that, whether end line of first content and start Line of second content are on same page of pdf in succession
<div class="outerdiv">
<div class="wrapper">
<table>
<tbody>
<tr>
<td class="startLine">....</td> //start line of first content
</tr>
</tbody>
</table>
</div>
<div class="wrapper">.....</div>
<div class="endLine"></div> //endline of first content
</div>
<div class="outerdiv">
<div class="wrapper">
<table>
<tbody>
<tr>
<td class="startLine">....</td> //start line of second content
</tr>
</tbody>
</table>
</div>
<div class="wrapper">.........</div>
<div class="endLine"></div> //end line of second content
</div>
//css
<style>
.endLine .startLine{
border-top:1px solid #000;
}
</style>
Query: How to know that, whether end line of first content and start Line of second content are on same page of pdf in succession
<div class="outerdiv">
<div class="wrapper">
<table>
<tbody>
<tr>
<td class="startLine">....</td> //start line of first content
</tr>
</tbody>
</table>
</div>
<div class="wrapper">.....</div>
<div class="endLine"></div> //endline of first content
</div>
<div class="outerdiv">
<div class="wrapper">
<table>
<tbody>
<tr>
<td class="startLine">....</td> //start line of second content
</tr>
</tbody>
</table>
</div>
<div class="wrapper">.........</div>
<div class="endLine"></div> //end line of second content
</div>
//css
<style>
.endLine .startLine{
border-top:1px solid #000;
}
</style>