Multiple Line Item Groups in PDF contract template

Good afternoon everyone,

I haven’t found anything related to my question. I’m sorry, if I have missed a related post.

My problem is that my PDF contract template doesn’t print all line item groups but only the first. How can I tell the PDF template to loop through the line item groups?

My HTML code looks something like this which is part of a larger table (I have also tried it as a separate table, with no luck):

    <td>From date</td>
    <td>Until date</td>

Does anyone know how to get this done?

Thank you very much