#28549

I think I’ve found a solution: avoid having to know about the pagebreaks.
The trick is to unset/set the page headers the way shown to prevent having the country name printed twice.
The issue reported in this thread (multiple page headers) is fixed in version 3.8.

I will not adapt the example to fit the older examples 🙂

<br /> <table style="page-break-inside: avoid;"><br /> <pd4ml:page.header><br /> </pd4ml:page.header><br /> <tr><br /> <th>Italy</th><br /> </tr><br /> <tr><br /> <td>Item 1</td><br /> </tr><br /> </table><br /> <pd4ml:page.header><br /> <table><br /> <tr><br /> <th>Italy (Continued)<br>Company 1</th><br /> </tr><br /> </table><br /> </pd4ml:page.header><br /> <table><br /> <tr><br /> <td>Item 2</td><br /> </tr><br /> ...<br /> </table><br /> <pd4ml:page.header><br /> <tr><br /> <th>Italy (Continued)</th><br /> </tr><br /> </pd4ml:page.header><br /> <table style="page-break-inside: avoid;"><br /> <tr><br /> <td>Company 2</td><br /> </tr><br /> <tr><br /> <td>Item 1</td><br /> </tr><br /> </table><br /> <pd4ml:page.header><br /> <table><br /> <tr><br /> <th>Italy (Continued)<br>Company 2</th><br /> </tr><br /> </table><br /> </pd4ml:page.header><br /> <table><br /> <tr><br /> <td>Item 2</td><br /> </tr><br /> ..<br /> </table>

Output:
Italy
Company 1
Item 1
Item 2
Item 2
Item 3
Item 4
Item 5
Item 6
Item 7
Item 8
Item 9
<>
Italy (Continued)
Company 2
Item 1
Item 2
Item 2
Item 3
Item 4
Item 5
Item 6
Item 7
Item 8
Item 9
<
>
Italy (Continued)
Company 2
Item 10
Item 11
Item 12
Item 13
Item 14
Item 15
Item 16