I am facing a challenge with my HTML page. I have implemented a button that is supposed to convert the entire HTML page into an image when clicked. So far, I have used html2canvas for this purpose as shown below:
html2canvas([document.getElementById('form1')], {
onrendered: function (canvas) {
var imageData = canvas.toDataURL('image/jpeg',1.0);
}
});
The issue I am encountering is that the resulting image data does not include checkboxes and radio buttons. Are there any alternative methods using jQuery or JavaScript to achieve this conversion successfully? If so, your assistance in solving this problem would be greatly appreciated.
Thank you in advance.