Issue when printing a big document with puppeteer
I don't think it's a pagedjs issue, but I'm here to ask if there is a way to know when pagedJS finish the client side generation.
Or is there a way to generate the output via CLI?
I have a document with 52 pages and big images. Sometimes when converting it to PDF using Puppeteer the page is printed before pagedjs finish the DOM manipulation.
Is there a way to let Puppeteer say...: Ok. The manipulation ended. Print now.
Looks like networkidle2 it's not enough cause the network is idle but the client side manipulation is not finished.