“html2pdf” Kod odpowiedzi

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();
}
Blue-eyed Barracuda

Odpowiedzi podobne do “html2pdf”

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu