Below is my code for exporting the data cell to pdf format...
html2canvas(document.getElementById('value_export'), { onrendered: function (canvas) { var data = canvas.toDataURL(); var docDefinition = { content: [{ image: data, width: 1300 }], pageSize: 'A3', pageOrientation: 'landscape' }; pdfMake.createPdf(docDefinition).download("timesheetSubissionReport.pdf"); } });
https://stackoverflow.com/questions/66978307/my-table-cell-is-overflow-y-when-i-tried-to-export-to-pdf-format-using-html2can April 07, 2021 at 09:06AM
没有评论:
发表评论