PDF-LIB-TABLE

Picture of the author

The King of PDF Table Generation

We crated this library because generating pdf tables is hard. Anything that more than the most basic example is not supported. This library aims to solve that

Easy to use

Install the library, import the create table function, then print!

Handle Page Breakes with Ease

Pages can start with or without headers. Table demensions are returned facilitating dynamic footers to fill space

Lightweight & Preformant

Pdf-Lib-Table has no external dependances and can print hundreds of pages with ease

Over 50 parameters

Easy to get going, but enough customization to grow with your project

import { createPDFTables } from 'pdf-lib-table';
//TABLE SETTINGS
const pdfSettings = {
     data,
     columns,
     pdfDoc
});
const tables = await createPDFTables(
     data
     page
     pdfDoc
     columnDefs
     StandardFonts
     rgb
     {pdfSettings}
);
tables.drawVerticalTables();
Picture of the author
Picture of the author
Picture of the author

Install Now!

1. Install daisyUI as a Node package:
npm i pdf-lib-table
2. Import pdf-lib-table in you project files:
import {createTable} from 'pdf-lib-table';