jsPDF icon indicating copy to clipboard operation
jsPDF copied to clipboard

Can't use <!-- ADD_PAGE --> with addHTML()

Open sylvanash opened this issue 12 years ago • 1 comments

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

sylvanash avatar Dec 01 '14 14:12 sylvanash

Not possible to do this with addHTML.

Uzlopak avatar Feb 16 '18 11:02 Uzlopak