I tried everything on the Internet, and this is my last attempt to find out if this is possible or not. I am dealing with a long and dynamic html and I need to convert it to multi-page pdf. I tried both the addhtml and addImage methods but did not get the desired result.
addhtml: when I used the pageplit parameter, it stretched all the pages. I tried to set the width and height in the settings, but did not stop the display.
addimage: this shows only the image on 1 page without the possibility of splitting the image into 2 pages.
Another thing I want to add is my html, which can have dynamic width and height. so if anyone can help me here, it would be great if i were in a huge problem.
Please help me.
Note. I use jspdf and html2canvas libraries
source
share