How to set html content responsive while setting width and height in jspdf?
below is my code but it does not gives A4 format. If I'm using A4 format then my content is not wrapping up, instead its getting cut.
const Click_Download = async () => {
(window as any).html2canvas = html22canvas;
const doc = new jsPDF('l', 'pt', [1400, 1000]);
(doc as any).html(document.querySelector("#myid"), {
callback: function(pdf: any) {
pdf.save(mypdf.pdf");
}
});
}