pdf-creator
Simple nodejs script to generate hello world pdf with pdfkit library with custom table support (dynamic)
usage
git clone
yarn
or npm i
node app.js
You can see the output.pdf in output folder
sample data
const testData = [
[
{
text: 'row1 column1',
width: 0.3,
},
{
text: 'row1 column2',
width: 0.7,
},
],
[
{
text: 'row2 column1',
width: 0.3,
},
{
text: 'row2 column2',
width: 0.7,
},
],
];