Answers for "jspdf add page"

1

jspdf add page

doc = new jsPdf();
...
pageHeight= doc.internal.pageSize.height;

// Before adding new content
y = 500 // Height position of new content
if (y >= pageHeight)
{
  doc.addPage();
  y = 0 // Restart height position
}
doc.text(x, y, "value");
Posted by: Guest on March-26-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language