voilab / voilab-pdf-table

PdfKit wrapper that helps to draw informations in simple tables
MIT License
52 stars 26 forks source link

How to set next page, not use bold text ?? #35

Open suraboy opened 4 years ago

suraboy commented 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);