You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your docs state that pdfkit-table is a plugin. Does it mean that it requires pdfkit installed separately to run or is it standalone? I am assuming it is standalone and therefore I did not install the original pdfkit library nor its @types/pdfkit module.
I have "pdfkit-table": "^0.1.99" and "typescript": "^4.9.4" installed and none of the examples provided in your docs work.
Take your most basic example:
importPDFDocumentfrom"pdfkit-table";// init documentletdoc=newPDFDocument({margin: 30,size: 'A4'});// save documentdoc.pipe(fs.createWriteStream("./document.pdf"));await(asyncfunctioncreateTable(){// tableconsttable={title: '',headers: [],datas: [/* complex data */],rows: [/* or simple data */],};awaitdoc.table(table,{/* options */});doc.end();})();
Will return the following errors:
The text was updated successfully, but these errors were encountered:
Hello,
Your docs state that pdfkit-table is a plugin. Does it mean that it requires pdfkit installed separately to run or is it standalone? I am assuming it is standalone and therefore I did not install the original
pdfkit
library nor its@types/pdfkit
module.I have
"pdfkit-table": "^0.1.99"
and"typescript": "^4.9.4"
installed and none of the examples provided in your docs work.Take your most basic example:
Will return the following errors:
The text was updated successfully, but these errors were encountered: