Template clone script failing after so many clones

I am working with a template that depending on a detail.table, we need to clone part of the html “x” amount of times. I have determined that if there are 30+ records in the detail.table, the html starts to overlap and doesn’t flow from page to page. The preview in the template always works, but when the PDF output is generating it breaks (cloned html overlaps). If there are less than 30 records in the detail.table, the html prints just fine.

Hi @APoole,

[…] we need to clone part of the html “x” amount of times.

Can you please indicate what this HTML code looks like?

Can you also let us know please which Selector value you’re using for your clone script?

It is actually a div with a class that is set to 8.5 x11, so the whole div is a page. The div should clone x amount of times, so we have x amount of pages in a PDF. The clone works up to 29 pages but as soon as I have a record that has over 29 in the table, the content overlaps on page 1 and doesn’t flow to the other pages. I attached what I mean by that as well.

2022-09-12%2008_14_58-DeveloperNSD-W10 2022-09-12%2008_15_42-DeveloperNSD-W10

2022-09-12%2008_18_49-DeveloperNSD-W10

Hard to explain without having access to the data and the template.

Is the text overlayed on every page? In that case I would suggest to add an absolute position object to a master page. These will automatically overlay on each page and master objects can be personalized with data.