Answers for "html2pdf"

0

html2pdf

function generatePDF() {
  // Choose the element that our invoice is rendered in.
  const element = document.getElementById("invoice");
  // Choose the element and save the PDF for our user.
  html2pdf()
    .set({ html2canvas: { scale: 4 } })
    .from(element)
    .save();
}
Posted by: Guest on June-09-2021

Browse Popular Code Answers by Language