How to page break or table break

how to page break or table break the same way the defaut print work
how to do that on customize print,
in other words how to make table break or page break on table

I’m not sure where you want the page/table break, but if I understand correctly then this might be of use:

Here are two photos, they are both of the “ToDo” DocType. The first is of what the view looks like and the second is the backend of the DocType. As you can see on lines 1, 4, 7, 9 and 12 there are "Section Break"s and "Column Break"s. Just have a little fiddle with adding these types for rows in a doctype and you will probably get it.

I hope this answers your question

I think @Dany_Carvalheiro meant page breaking during the printing, but I can’t help with that, unfortunately.

@Dany_Carvalheiro Page break using <div class="page-break"></div> works but I can only get it to work with custom print format. Customizing an existing print format and entering this does not work at the moment.

hi thank you for the reply what i need is this the default print

i want to do the same for my custom print format
on this i just put check on the item page break and it works,
when i put

it doesnt break the table but the all the page

any support on this???

sorted thank you, you can close the issue

share with us how you sorted this out

this is the code you must have inside of for condition

{{ row.idx }} {{ row.item_code }} {% if row.in_format_data("image") and row.get("image") -%}
{%- endif %}
             {{ row.description or '' }}  </td>
        <td style="width: 2%; text-align: right;">{{ row.qty }}</td>
        <td style="width: 4%; text-align: right;">{{ row.uom or row.stock_uom }}</td>
        <td style="width: 10%; text-align: right;">{{row.brand or ""}}</td>              
        <td style="width: 12%; text-align: right;">
            {{ row.get_formatted("rate", doc) or ''}}
{{ row.get_formatted("amount", doc) or ''}} {%- endif %}

{% if row.page_break -%}

        <th  class="text-right">Pr. Unitario</th>
        <th class="text-right">Valor</th>
    {%- endif %}

{%- endfor -%}

Artigo Descrição Quant. Un Marca

did you get it?