Print Format Problem (PDF)

Hai… Below is my cutom print format code.

<table>
   {% for i in range(1, 59) %}
    
        <tr>
        <td>{{ i }}</td>
        <td>Sno</td>
        <td>Sno</td>
        <td>Sno</td>
   
    </tr>
{% endfor %}
</table>

No CSS… No decoration… Nothing… My problem is when I click on print each page 27 items coming. But if click on PDF per page it is coming 34 items. I want both 27 or both 34… Any help…

Any Help Please… This will solve too many problem for me.