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
//...