Can't use <!-- ADD_PAGE --> with addHTML()
I'm using addHTML() to generate a pdf of a dynamic website using angularJS. The pdf is being generated OK. However, I have a certain webpage that contains a list of items and each of these items further contains more information within it. I'd like to render the pdf such that each item begins on a new page i.e. two items are not generated on the same page. I've tried but running the debugger on browser shows that the code never gets to this. After going through the code, I think it's perhaps because was defined in fromHTML() and not in addHTML(). I still haven't fully understood the code base, so I was wondering if someone knew of an easy way to achieve this?
Thanks
Not possible to do this with addHTML.