Open suraboy opened 4 years ago
this is my code
table //add plugin for fix column .addPlugin(new (require('voilab-pdf-table/plugins/fitcolumn'))({ column: 'created_date' })) .setColumnsDefaults({ // 'B' => 'buttom' , 'T' => 'top' , R => 'right' , 'L' => 'left' headerBorder:['B'],align:'right', padding: [5, 0, 5, 0],valign: 'right', lineGap: 3.1, }) .addColumns(setColumns(doc)) // add events (here, we draw headers on each new page) .onPageAdded(function (tb) { tb.addHeader(); }); .... table.addBody(rowValues);
this is my code
table //add plugin for fix column .addPlugin(new (require('voilab-pdf-table/plugins/fitcolumn'))({ column: 'created_date' })) .setColumnsDefaults({ // 'B' => 'buttom' , 'T' => 'top' , R => 'right' , 'L' => 'left' headerBorder:['B'],align:'right', padding: [5, 0, 5, 0],valign: 'right', lineGap: 3.1, }) .addColumns(setColumns(doc)) // add events (here, we draw headers on each new page) .onPageAdded(function (tb) { tb.addHeader(); }); .... table.addBody(rowValues);