1 year ago
#388381
João Marques
JsPdf How to remove only a specific column when export table to pdf using bootstrap
I´m trying pass some columns from my bootstrap table to a pdf. The problem is when I´m do a export to pdf they file contains the Actions and I don´t want it.
@ViewChild('pdfTable', {static: false}) pdfTable: ElementRef;
There it´s possible to see the library JsPDF used on typescript for a Bootstrap table. public downloadAsPDF() { let doc = new jsPDF('p', 'pt','a3',true);
const pdfTable = this.pdfTable.nativeElement;
doc.html(pdfTable,{
callback:(doc)=>{
doc.save('tableToPdf.pdf');
}
});
} Here is the table of HTML file
<div id="pdfTable" #pdfTable>
<table class = "table table-striped" id="table-items" >
I Hope do you guys can help me and thank you all.
angularjs
bootstrap-4
jspdf
0 Answers
Your Answer