【发布时间】:2019-08-22 19:43:53
【问题描述】:
我在我的程序中使用overFlow : linebreak。它工作正常这是我的代码,
styles: {
fillStyle: 'DF',
overflow: 'linebreak',
columnWidth: 110,
lineWidth: 2,
lineColor: [85, 51, 27]
}
但这并没有反映在 beforePageContent 内部,这是代码,
beforePageContent: function(data) {
doc.setFontSize(12);
doc.setFont("courier");
doc.text("Process Name :",20 ,15);
doc.setFontStyle('bold');
//doc.overflow('linebreak');
doc.setFontStyle('normal');
doc.text("Description :"+sampData, 20, 30);
},
那么我如何在我的beforePageContent 块中使用lineBreak。
【问题讨论】:
-
@Simon Bengtsson ,帮我解决这个问题
标签: jspdf jspdf-autotable