Hello. Tell me this situation. Use jquery Datatables with a button to export the table to png. Handler Code:
$( ".export" ).clone().appendTo( ".table_to_export" ); html2canvas($(".table_to_export"), { onrendered: function (canvas) { var a = $("<a>").attr("href", canvas.toDataURL('image/png')) .attr("download", "Экспорт таблицы.png") .appendTo("body"); a[0].click(); a.remove(); } }); $(".table_to_export").html(""); The result of the work is correct: 
However, you need to remove the last column. jquery Datatables supports this. Add to handler
table.column( 7 ).visible( false ); Everything is correctly hidden. But html2canvas produces the following result:
What could be the problem? I tried to change the styles of the text table - the text is also not displayed correctly. Delete a column from the duma or hide it too.
