Dynamic Multipage Creation

I am making sticker to print the serial numbers in the warranty card using the print designer.
Its working fine if a customer has bought only one device as only one serial number will be present in that case.

If multiple serial number is present, I want each serial number to be printed in different page to use only one serial in one warranty card.

To do this, I need to dynamically created multiple pages based on serial numbers present.

How can I do so? Is this feature already available or is this a feature request?

{% for i in range(1, 11) %}
<div class="page">
    <h1 style="text-align:center;">{{ i }}</h1>
</div>

{% if not loop.last %}
<div style="page-break-after: always;"></div>
{% endif %}
{% endfor %}

try this. You can replace range(1, 11) with a dynamic list, e.g.:

{% for serial in doc.serial_numbers %}
   {{ serial.name }}
{% endfor %}