How page break on item works

Can some one explain how pagebreak on item works, ?

So I’m not sure if you’re referring to section break or column break - doctype model link, but they essentially do the same thing, which is format the HTML rendering of the page.

I haven’t found a good tutorial on how to leverage this, otherwise I’d point you to it. It’s something worth digging into though. Maybe creating a tutorial list is something the foundation could take up? @JayRam

i have this code on custom printing to table item

    {%- for row in doc.items -%}
      <tr height="0">              
        <td style="width: 5%;">{{ row.item_code }}</td>
        <td style="width: 40%;">
   {% if row.in_format_data("image") and row.get("image") -%}
      <div class="pull-left" style="max-width: 20%; margin-right: 10px;">
      <img src="{{ row.image }}" style="max-width: 100%">
      </div>
    {%- endif %}

             
             {{ row.description or '' }}  </td>
        <td style="width: 5%; text-align: right;">{{ row.qty }}</td>
        <td style="width: 5%; text-align: right;">{{ row.uom or row.stock_uom }}</td>
        <td style="width: 10%; text-align: right;">{{row.prazo_entrega_ordem_vendas or ""}}</td>              
          {%- if row.discount_percentage>=0 -%}
        <td style="width: 4%; text-align: right;">
           
            {{ row.get_formatted("discount_percentage", doc) or ''}}
        </td>
        {%- endif -%}
        {%- if row.discount_percentage<0 -%}
        
           
           <td>{{""}}</td>
        
        {%- endif -%}
        <td style="width: 15%; text-align: right;">
           
            {{ row.get_formatted("rate", doc) or ''}}
        </td>
        {%- if not doc.taxes -%}
          <td>{{""}}</td>
          {%- endif -%}
        {%- for row in doc.taxes -%}
     {%- if not row.included_in_print_rate -%}
      {%- if row.tax_amount -%}   
        <td style="width: 5%; text-align: right;">{{row.rate}}</td>
     {%- endif -%}
      {%- endif -%}
      {%- endfor -%}
{%- endfor -%}
Artigo Descrição Quant. Un Prazo de Entrega Desc. % Pr. Unitario IVA Valor
{{ row.get_formatted("amount", doc) or ''}}

where on this code i can realize the check when page break is selected as shown on the picture

the code

`


Artigo
Descrição
Quant.
Un
Prazo de Entrega
Desc. %
Pr. Unitario
IVA
Valor
    {%- for row in doc.items -%}
      <tr height="0">              
        <td style="width: 5%;">{{ row.item_code }}</td>
        <td style="width: 40%;">
   {% if row.in_format_data("image") and row.get("image") -%}
      <div class="pull-left" style="max-width: 20%; margin-right: 10px;">
      <img src="{{ row.image }}" style="max-width: 100%">
      </div>
    {%- endif %}

             
             {{ row.description or '' }}  </td>
        <td style="width: 5%; text-align: right;">{{ row.qty }}</td>
        <td style="width: 5%; text-align: right;">{{ row.uom or row.stock_uom }}</td>
        <td style="width: 10%; text-align: right;">{{row.prazo_entrega_ordem_vendas or ""}}</td>              
          {%- if row.discount_percentage>=0 -%}
        <td style="width: 4%; text-align: right;">
           
            {{ row.get_formatted("discount_percentage", doc) or ''}}
        </td>
        {%- endif -%}
        {%- if row.discount_percentage<0 -%}
        
           
           <td>{{""}}</td>
        
        {%- endif -%}
        <td style="width: 15%; text-align: right;">
           
            {{ row.get_formatted("rate", doc) or ''}}
        </td>
        {%- if not doc.taxes -%}
          <td>{{""}}</td>
          {%- endif -%}
        {%- for row in doc.taxes -%}
     {%- if not row.included_in_print_rate -%}
      {%- if row.tax_amount -%}   
        <td style="width: 5%; text-align: right;">{{row.rate}}</td>
     {%- endif -%}
      {%- endif -%}
      {%- endfor -%}
{{ row.get_formatted("amount", doc) or ''}} {%- endfor -%} `

sorted you can close it!