I have an HTML form with several user input fields of type checkbox, text area and radio buttons that I need to download as a PDF file with the input values given by the user. I'm using jsPDF successfully to export the HTML div to a PDF but the input fields do not have any values in the PDF result. How do I export the entire form with the input values? Here is my jsPDF javascript for exporting to PDF:
self.onDownload = function (divId){
var doc = new jsPDF();
doc.fromHTML(document.getElementById(divId), 15, 15, {
'width': 170
});
doc.save('sample-file.pdf');
}