Я решил вопрос.Следуя этому коду -
capture() {
var doc = new jspdf('l', 'pt', 'a4');
var cols= [{ title: 'Id', dataKey: 'id' },
{ title: 'Source-Field Resolved Path', dataKey: 'sourceName' }, { title: 'Target Data Type', dataKey: 'tdataType' },
{ title: 'Data Type Verified', dataKey: 'datatypeVerified' }]
var tableData =[];
for(var i = 0 ; i <this.responseData.length; i ++){
tableData.push({'id':this.responseData[i].id, 'sourceName': this.responseData[i]. sourceName ,'tdataType': this.responseData[i].tdataType , 'datatypeVerified' :this.responseData[i].datatypeVerified,'backgroundColor': this.responseData[i].backgroundColor })
}
doc.autoTable(cols,tableData, {
didParseCell: function(cell,data) {
console.log("Data = ", data)
console.log("cell = ", cell)
var tdElement;
tdElement = cell.row.raw.backgroundColor
console.log("tdElement = ", tdElement)
if(tdElement == false && cell.column.raw.dataKey =="datatypeVerified" ){
cell.cell.styles.fontStyle = 'bold';
cell.cell.styles.textColor = [255,0,0]
}
}
}
document.getElementById('obj').dataset.data = doc.output("datauristring");
var blob = doc.output("blob");
window.open(URL.createObjectURL(blob));
}