You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing the issue to generate the a pdf with multiple HTML div elements on separate pages
only text getting printed but not the content from second div getting blank
i want to allow the autopaging text for pages
ok found a solution that works for me, and allows me to use autoPaging: text.
it involves setting the y position for each element that needs to be on a new page.
can determine the correct y value by using doc.internal.pageSize.height in your loop.
constdoc=newjsPdf();for(leti=0;i<numPages;i++){consty=(doc.getNumberOfPages()-1)*doc.internal.pageSize.height;constpage=document.createElement('div')// append stuff into the divawaitdoc.html(page,{ ...htmlOptions, y });doc.addPage();}
I am facing the issue to generate the a pdf with multiple HTML div elements on separate pages
only text getting printed but not the content from second div getting blank
i want to allow the autopaging text for pages
The text was updated successfully, but these errors were encountered: