此代码:
doc.table([
["cell11","cell21","cell31"],
["cell12","cell22","cell32"]`
["cell13","cell23","cell33"]
],{
width:20,
height:40,
x:30,
y:40
});
获取错误doc.table不是一个函数。
答案 0 :(得分:0)
使用voilab-pdf-table npm模块并添加插件voilab-pdf-table / plugins / fitcolumn来创建表。