Invoice Customization Limiting Item List

Invoice Customization Limiting Item List

Hi!
Im using HTML editor for creating customized invoice.
I would like to ask if it is possible to limit the lineitem to (for example) 8, and then automatically sends to a next page which continues the lineitem lists.
Every page has a maximum of 8 items. If the number exceeds it will automatically be listed to the next page


If it is possible... how?
Thanks in advance