Angular 如何使用JsPDF打印svg图标
伙计们 我有一个datatable,它包含如下数据和图标: ,现在我必须打印带有数据表的图标我的代码是:Angular 如何使用JsPDF打印svg图标,angular,typescript,Angular,Typescript,伙计们 我有一个datatable,它包含如下数据和图标: ,现在我必须打印带有数据表的图标我的代码是: var prepare=[]; this.DispalayingObject.forEach(e=>{ var tempObj =[]; tempObj.push(e.FullName); tempObj.push(e.Connected); tempObj.push(e.DepartmentName); tempObj.push(e.Sp
var prepare=[];
this.DispalayingObject.forEach(e=>{
var tempObj =[];
tempObj.push(e.FullName);
tempObj.push(e.Connected);
tempObj.push(e.DepartmentName);
tempObj.push(e.Speed);
tempObj.push(e.EngineTemperature);
tempObj.push(e.FuelLevel);
tempObj.push(e.Latitude);
tempObj.push(e.Longitude);
tempObj.push(e.LastAlertDescription);
prepare.push(tempObj);
});
const doc = new jsPDF();
doc.text('Real time tracking inforamation', 78, 16); //default
doc.autoTable({
head: [['FullName','Connected?','Department','Speed','Motor temperature','Fuel Level','Latitude','Longitude','Last Alert Description']],
body: prepare,
startY: 20
});
doc.save('real-time-tracking.pdf');
因此,可以将一列内容添加到svg图标或mat图标