79696064

Date: 2025-07-09 18:09:48
Score: 1
Natty:
Report link

I came to the point that when we pass a string to html2pdf everything works, but when clone, for some reason the pdf is empty.

The code I came up with:

//...
// Generate PDF
let htmlString = clone.innerHTML; //Create string
html2pdf()
.from(htmlString) //Passing the string
//...
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: sh4man