Javascript 获取自动表格jsPDF中的自定义文本包装
我有一个需求,需要使用jsPDF在PDF上生成表/自动表 我可以通过以下链接生成表格并下载PDF: 但是,生成的表需要与所附的屏幕截图类似Javascript 获取自动表格jsPDF中的自定义文本包装,javascript,jspdf,jspdf-autotable,Javascript,Jspdf,Jspdf Autotable,我有一个需求,需要使用jsPDF在PDF上生成表/自动表 我可以通过以下链接生成表格并下载PDF: 但是,生成的表需要与所附的屏幕截图类似 我怎样才能继续进行这项工作?您可以按以下方式进行 不推荐使用此autoTableEndPosY 请从现在开始使用以下代码 pdf.autoTable({ //.... }); let y = pdf.autoTable.previous.finalY; pdf.text(x, y+10,'This is Text'); //add 10 (o
我怎样才能继续进行这项工作?您可以按以下方式进行 不推荐使用此autoTableEndPosY 请从现在开始使用以下代码
pdf.autoTable({
//....
});
let y = pdf.autoTable.previous.finalY;
pdf.text(x, y+10,'This is Text');
//add 10 (or any number of choice) to y for adding space between table and text
pdf.autoTable({
//....
});
let y = pdf.autoTable.previous.finalY;
pdf.text(x, y+10,'This is Text');
//add 10 (or any number of choice) to y for adding space between table and text